mirror of
https://github.com/taoneill/war.git
synced 2024-11-14 06:17:01 +01:00
Fix for infinite exploding TNT near warzone edges.
This commit is contained in:
parent
7621bdd321
commit
dd6f425368
@ -306,6 +306,9 @@ public class WarEntityListener implements Listener {
|
||||
}
|
||||
|
||||
for (Block block : explodedBlocks) {
|
||||
if (block.getType() == Material.TNT) {
|
||||
continue; // don't restore TNT (failed to track down regression cause)
|
||||
}
|
||||
if (War.war.getWarHub() != null && War.war.getWarHub().getVolume().contains(block)) {
|
||||
dontExplode.add(block);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user