SteamWar/FightSystem
Archiviert
13
1

Limit block breaking below ground
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2021-12-22 12:17:33 +01:00
Ursprung acb439e3d9
Commit 27056e4842

Datei anzeigen

@ -81,7 +81,7 @@ public class TeamArea implements Listener {
@EventHandler @EventHandler
public void blockBreak(BlockBreakEvent event) { public void blockBreak(BlockBreakEvent event) {
Block block = event.getBlock(); Block block = event.getBlock();
if(Config.BlueExtendRegion.inRegion(block) || Config.RedExtendRegion.inRegion(block)) if(Config.BluePasteRegion.getMinY() >= block.getY())
return; return;
event.setCancelled(true); event.setCancelled(true);