Skip to content

Commit

Permalink
Apply crop trampling setting to all entities.
Browse files Browse the repository at this point in the history
  • Loading branch information
wizjany committed Feb 21, 2013
1 parent dfb6114 commit 327ae2b
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 327ae2b

Please sign in to comment.