Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
c17dc43678
Commit
79413434f7
@ -73,8 +73,13 @@ public class WaterRemover implements Listener {
|
||||
FightTeam spawn = tnt.remove(event.getEntity().getEntityId());
|
||||
if(spawn != null && !spawn.getExtendRegion().inRegion(event.getLocation())) {
|
||||
Block b = event.getLocation().getBlock();
|
||||
checkBlock(b);
|
||||
checkNeighbours(b);
|
||||
for(int y = -1; y <= 1; y++) {
|
||||
for(int z = -1; z <= 1; z++) {
|
||||
for(int x = -1; x <= 1; x++) {
|
||||
checkBlock(b.getRelative(x, y, z));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
event.blockList().forEach(this::checkNeighbours);
|
||||
@ -90,7 +95,7 @@ public class WaterRemover implements Listener {
|
||||
}
|
||||
|
||||
private void checkBlock(Block b) {
|
||||
//do not remove outside teamareasevent.getLocation().getBlock()
|
||||
//do not remove outside teamareas
|
||||
if(!Config.BlueExtendRegion.inRegion(b) && !Config.RedExtendRegion.inRegion(b))
|
||||
return;
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren