Hitting the bomb carrier could still make him explode blocks while unbreakable:true. From now on unbreakable:true means bomb carrier really can't make any damage.

This commit is contained in:
taoneill 2012-04-06 22:32:31 -04:00
parent 305b2454c7
commit 1d47f79eca

View File

@ -188,7 +188,9 @@ public class WarEntityListener implements Listener {
}
// Blow up bomb
defenderWarzone.getWorld().createExplosion(a.getLocation(), 2F);
if (!defenderWarzone.getWarzoneConfig().getBoolean(WarzoneConfig.UNBREAKABLE)) {
defenderWarzone.getWorld().createExplosion(a.getLocation(), 2F);
}
// bring back tnt
bomb.getVolume().resetBlocks();