From 4ac1c3759ab4d4269e6df59287495be4695a66bb Mon Sep 17 00:00:00 2001 From: Lixfel Date: Tue, 9 May 2023 21:15:15 +0200 Subject: [PATCH] Fix Handswapping Signed-off-by: Lixfel --- .../src/de/steamwar/fightsystem/fight/FightSchematic.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/fight/FightSchematic.java b/FightSystem_Core/src/de/steamwar/fightsystem/fight/FightSchematic.java index 6dfae63..51c75cf 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/fight/FightSchematic.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/fight/FightSchematic.java @@ -33,9 +33,11 @@ import de.steamwar.fightsystem.utils.Region; import de.steamwar.fightsystem.utils.WorldeditWrapper; import de.steamwar.sql.SchematicData; import de.steamwar.sql.SchematicNode; -import org.bukkit.*; +import org.bukkit.Bukkit; +import org.bukkit.DyeColor; +import org.bukkit.Location; +import org.bukkit.Material; import org.bukkit.block.Block; -import org.bukkit.event.HandlerList; import org.bukkit.util.Vector; import java.io.IOException; @@ -154,7 +156,7 @@ public class FightSchematic extends StateDependent { replaceSync(Material.BEDROCK, Material.SLIME_BLOCK); if(!Config.ReplaceWithBlockupdates) - HandlerList.unregisterAll(freezer); + freezer.disable(); } public void pasteTeamName(){