Fixed Withers still breaking blocks if they smash their bodies into them. Fixes WORLDGUARD-2245.

This commit is contained in:
sk89q 2012-11-02 12:18:25 -07:00
parent bb9dff7b8c
commit dd0c1a5ab5

View File

@ -782,6 +782,14 @@ public void onEndermanPickup(EntityChangeBlockEvent event) {
}
}
}
} else if (ent instanceof Wither) {
ConfigurationManager cfg = plugin.getGlobalStateManager();
WorldConfiguration wcfg = cfg.get(ent.getWorld());
if (wcfg.blockWitherBlockDamage || wcfg.blockWitherExplosions) {
event.setCancelled(true);
return;
}
}
}