diff --git a/FightSystem_12/src/de/steamwar/fightsystem/utils/ProtocolWrapper12.java b/FightSystem_12/src/de/steamwar/fightsystem/utils/ProtocolWrapper12.java
index 3c376b4..650fb41 100644
--- a/FightSystem_12/src/de/steamwar/fightsystem/utils/ProtocolWrapper12.java
+++ b/FightSystem_12/src/de/steamwar/fightsystem/utils/ProtocolWrapper12.java
@@ -20,7 +20,6 @@
package de.steamwar.fightsystem.utils;
import com.comphenix.tinyprotocol.Reflection;
-import de.steamwar.fightsystem.Config;
import org.bukkit.entity.Player;
import java.util.function.BiFunction;
@@ -39,7 +38,7 @@ public class ProtocolWrapper12 extends ProtocolWrapper8 {
if(TechHider.bypass(p, TechHider.posToChunk(TechHider.blockPositionX.get(pos)), TechHider.posToChunk(TechHider.blockPositionZ.get(pos))))
return packet;
- if(Config.HiddenBlocks.contains(TechHider.getMaterialByIBlockData(blockBreakBlockData.get(packet)).name().toLowerCase())){
+ if(ProtocolWrapper.impl.iBlockDataHidden(blockBreakBlockData.get(packet))){
packet = blockBreakCloner.apply(packet);
blockBreakBlockData.set(packet, TechHider.obfuscateIBlockData);
}
diff --git a/FightSystem_18/pom.xml b/FightSystem_18/pom.xml
index 4dec64d..c3c4daa 100644
--- a/FightSystem_18/pom.xml
+++ b/FightSystem_18/pom.xml
@@ -55,6 +55,12 @@
4.1.68.Final
provided
+
+ com.mojang
+ authlib
+ 1.5.25
+ provided
+
steamwar
Spigot
diff --git a/FightSystem_18/src/de/steamwar/fightsystem/utils/ProtocolWrapper18.java b/FightSystem_18/src/de/steamwar/fightsystem/utils/ProtocolWrapper18.java
index a47d824..54ee416 100644
--- a/FightSystem_18/src/de/steamwar/fightsystem/utils/ProtocolWrapper18.java
+++ b/FightSystem_18/src/de/steamwar/fightsystem/utils/ProtocolWrapper18.java
@@ -20,9 +20,13 @@
package de.steamwar.fightsystem.utils;
import com.comphenix.tinyprotocol.Reflection;
+import com.mojang.authlib.GameProfile;
import com.mojang.datafixers.util.Pair;
import de.steamwar.fightsystem.Config;
+import de.steamwar.fightsystem.fight.Fight;
import de.steamwar.fightsystem.record.REntity;
+import net.minecraft.core.IRegistry;
+import net.minecraft.core.SectionPosition;
import net.minecraft.network.protocol.game.PacketPlayOutBlockBreak;
import net.minecraft.world.entity.EntityTypes;
import net.minecraft.world.level.block.entity.TileEntityTypes;
@@ -79,10 +83,8 @@ public class ProtocolWrapper18 implements ProtocolWrapper {
}
}
- private static final Class> sectionPosition = Reflection.getClass("{nms.core}.SectionPosition");
- private static final Reflection.FieldAccessor> multiBlockChangeChunk = Reflection.getField(TechHider.multiBlockChangePacket, sectionPosition, 0);
- private static final Class> iBlockDataArray = Reflection.getClass("[L{nms.world.level.block.state}.IBlockData;");
- private static final Reflection.FieldAccessor> multiBlockChangeBlocks = Reflection.getField(TechHider.multiBlockChangePacket, iBlockDataArray, 0);
+ private static final Reflection.FieldAccessor multiBlockChangeChunk = Reflection.getField(TechHider.multiBlockChangePacket, SectionPosition.class, 0);
+ private static final Reflection.FieldAccessor multiBlockChangeBlocks = Reflection.getField(TechHider.multiBlockChangePacket, IBlockData[].class, 0);
private static final BiFunction