Apply crop trampling setting to all entities.

This commit is contained in:
Wizjany 2013-02-21 10:13:17 -05:00
parent dfb6114584
commit 327ae2b807

View File

@ -120,7 +120,8 @@ public void onEntityInteract(EntityInteractEvent event) {
WorldConfiguration wcfg = cfg.get(entity.getWorld());
if (block.getTypeId() == BlockID.SOIL) {
if (entity instanceof Creature && wcfg.disableCreatureCropTrampling) {
if (/* entity instanceof Creature && // catch for any entity (not thrown for players) */
wcfg.disableCreatureCropTrampling) {
event.setCancelled(true);
}
}