Fixed sprinting while breaking a painting edge case. Fixes BUKKIT-740

This commit is contained in:
EvilSeph
2012-02-13 00:40:32 -05:00
parent 9b10970f6b
commit 1c28c946fa
3 changed files with 20 additions and 10 deletions

View File

@@ -286,11 +286,14 @@ public class EntityPainting extends Entity {
}
public void b_(double d0, double d1, double d2) {
if (!this.world.isStatic && d0 * d0 + d1 * d1 + d2 * d2 > 0.0D) {
// CraftBukkit start - not needed for paintings
/* if (!this.world.isStatic && d0 * d0 + d1 * d1 + d2 * d2 > 0.0D) {
if (dead) return; // CraftBukkit
this.die();
this.world.addEntity(new EntityItem(this.world, this.locX, this.locY, this.locZ, new ItemStack(Item.PAINTING)));
}
}*/
// CraftBukkit end
}
}