forked from SteamWar/SteamWar
Implement old bau behavior for WGS
Signed-off-by: Chaoscaot <max@maxsp.de>
This commit is contained in:
@@ -181,7 +181,12 @@ public class Permanent implements Listener {
|
|||||||
|
|
||||||
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
|
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
|
||||||
public void onExplosion(EntityExplodeEvent e) {
|
public void onExplosion(EntityExplodeEvent e) {
|
||||||
if (!(e.getEntity() instanceof TNTPrimed)) return;
|
if (!(e.getEntity() instanceof TNTPrimed)) {
|
||||||
|
if (Config.GameModeConfig.Schematic.Type.toDB().equals("wargearseason26")) {
|
||||||
|
e.blockList().clear();
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (!Config.GameModeConfig.Arena.WaterDamage) return;
|
if (!Config.GameModeConfig.Arena.WaterDamage) return;
|
||||||
e.blockList().removeIf(block -> {
|
e.blockList().removeIf(block -> {
|
||||||
if(block.getType() == Material.TNT) {
|
if(block.getType() == Material.TNT) {
|
||||||
|
|||||||
Reference in New Issue
Block a user