Fix donkey/mule dupe exploit.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user