forked from SteamWar/SteamWar
Fix WaterRemover.handleEntityExplode
This commit is contained in:
@@ -73,7 +73,7 @@ public class WaterRemover implements Listener {
|
|||||||
event.setYield(0); //No drops (additionally to world config)
|
event.setYield(0); //No drops (additionally to world config)
|
||||||
|
|
||||||
FightTeam spawn = tnt.remove(event.getEntity().getEntityId());
|
FightTeam spawn = tnt.remove(event.getEntity().getEntityId());
|
||||||
if(spawn != null && !spawn.getExtendRegion().inRegion(event.getLocation())) {
|
if(Config.GameModeConfig.Arena.WaterDamage && spawn != null && !spawn.getExtendRegion().inRegion(event.getLocation())) {
|
||||||
Block b = event.getLocation().getBlock();
|
Block b = event.getLocation().getBlock();
|
||||||
for(int y = -1; y <= 1; y++) {
|
for(int y = -1; y <= 1; y++) {
|
||||||
for(int z = -1; z <= 1; z++) {
|
for(int z = -1; z <= 1; z++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user