Fix donkey/mule dupe exploit.

This commit is contained in:
EvilSeph
2013-07-02 23:23:19 -04:00
parent 7b71fc23be
commit 29fa46a4b2
2 changed files with 3 additions and 1 deletions

View File

@@ -60,7 +60,7 @@ public class ContainerHorse extends Container {
}
public boolean a(EntityHuman entityhuman) {
return this.a.a(entityhuman) && this.f.d(entityhuman) < 8.0F;
return this.a.a(entityhuman) && this.f.isAlive() && this.f.d(entityhuman) < 8.0F; // CraftBukkit - add isAlive as a validator
}
public ItemStack b(EntityHuman entityhuman, int i) {