SteamWar/FightSystem
Archiviert
13
1

Performance
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
zOnlyKroks 2021-12-23 16:58:50 +01:00
Ursprung bfb394c609
Commit 2baacdb00f

Datei anzeigen

@ -12,12 +12,11 @@ import org.bukkit.event.block.BlockFadeEvent;
public class BlockFadeListener implements Listener { public class BlockFadeListener implements Listener {
public BlockFadeListener() { public BlockFadeListener() {
new StateDependentListener(ArenaMode.All, FightState.All, this); new StateDependentListener(Config.DisableSnowMelt, FightState.All, this);
} }
@EventHandler @EventHandler
public void onBlockFade(BlockFadeEvent event) { public void onBlockFade(BlockFadeEvent event) {
if(!Config.DisableSnowMelt) return;
if (event.getBlock().getType() == Material.SNOW_BLOCK || event.getBlock().getType() == Material.SNOW || event.getBlock().getType() == Material.ICE) { if (event.getBlock().getType() == Material.SNOW_BLOCK || event.getBlock().getType() == Material.SNOW || event.getBlock().getType() == Material.ICE) {
event.setCancelled(true); event.setCancelled(true);
} }