mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2025-02-19 13:52:04 +01:00
Fixed Withers still breaking blocks if they smash their bodies into them. Fixes WORLDGUARD-2245.
This commit is contained in:
parent
bb9dff7b8c
commit
dd0c1a5ab5
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user