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

@@ -791,11 +791,13 @@ public class EntityHorse extends EntityAnimal implements IInventoryListener {
return this.passenger == null && this.vehicle == null && this.bS() && this.bR() && !this.cv() && this.getHealth() >= this.getMaxHealth();
}
/* CraftBukkit start - don't treat horses differently
public void die() {
if (this.world.isStatic || !this.bS() && !this.ce() || this.getHealth() <= 0.0F) {
super.die();
}
}
// CraftBukkit end */
public void e(boolean flag) {
this.b(32, flag);