From 0c947f0b5b7accc43b7e7d880b46cc5190b8b660 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Mon, 11 Mar 2024 22:49:22 +0100 Subject: [PATCH] Fix debug code Signed-off-by: Lixfel --- .../fightsystem/utils/HullHiderWrapper18.java | 4 +--- .../src/de/steamwar/fightsystem/utils/Hull.java | 12 +++--------- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/FightSystem_18/src/de/steamwar/fightsystem/utils/HullHiderWrapper18.java b/FightSystem_18/src/de/steamwar/fightsystem/utils/HullHiderWrapper18.java index 86da5d9..45db342 100644 --- a/FightSystem_18/src/de/steamwar/fightsystem/utils/HullHiderWrapper18.java +++ b/FightSystem_18/src/de/steamwar/fightsystem/utils/HullHiderWrapper18.java @@ -27,7 +27,6 @@ import net.minecraft.core.SectionPosition; import net.minecraft.network.protocol.game.PacketPlayOutBlockChange; import net.minecraft.network.protocol.game.PacketPlayOutMultiBlockChange; import net.minecraft.world.level.block.state.IBlockData; -import org.bukkit.Material; import org.bukkit.block.data.BlockData; import java.util.ArrayList; @@ -42,8 +41,7 @@ public class HullHiderWrapper18 implements HullHiderWrapper { List blockdata = new ArrayList<>(changes.size()); changes.removeIf(change -> { - //BlockData data = Config.world.getBlockData(change.getX(), change.getY(), change.getZ()); - BlockData data = Material.EMERALD_BLOCK.createBlockData(); + BlockData data = Config.world.getBlockData(change.getX(), change.getY(), change.getZ()); boolean unchanged = data.getMaterial() == Config.ObfuscateWith; if(!unchanged) blockdata.add(getState.invoke(data)); diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/utils/Hull.java b/FightSystem_Core/src/de/steamwar/fightsystem/utils/Hull.java index f310fa3..6111388 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/utils/Hull.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/utils/Hull.java @@ -24,6 +24,7 @@ import de.steamwar.entity.REntity; import de.steamwar.fightsystem.Config; import de.steamwar.fightsystem.FightSystem; import de.steamwar.fightsystem.fight.FightTeam; +import lombok.AllArgsConstructor; import lombok.Getter; import org.bukkit.Location; import org.bukkit.Material; @@ -306,20 +307,13 @@ public class Hull { } + @Getter + @AllArgsConstructor public static class IntVector { - @Getter private final int x; - @Getter private final int y; - @Getter private final int z; - public IntVector(int x, int y, int z) { - this.x = x; - this.y = y; - this.z = z; - } - public IntVector(Location location) { this.x = location.getBlockX(); this.y = location.getBlockY();