mirror of
https://github.com/taoneill/war.git
synced 2025-02-23 06:41:20 +01:00
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:
parent
305b2454c7
commit
1d47f79eca
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user