From f6b043f3a551021f8657fb8dea3a322b75dbc7f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beatrice=20Dellac=C3=A0?= Date: Fri, 3 Jun 2022 18:09:06 +0200 Subject: [PATCH] Fix dependencies --- nms/v1_17_R1/pom.xml | 1 - nms/v1_18_R1/pom.xml | 14 +------------- .../reflection/v1_18_1/ReflectionManager.java | 3 +-- 3 files changed, 2 insertions(+), 16 deletions(-) diff --git a/nms/v1_17_R1/pom.xml b/nms/v1_17_R1/pom.xml index 08b67698..60262f95 100644 --- a/nms/v1_17_R1/pom.xml +++ b/nms/v1_17_R1/pom.xml @@ -10,7 +10,6 @@ 4.0.0 - v1_17_R1 1.0-SNAPSHOT diff --git a/nms/v1_18_R1/pom.xml b/nms/v1_18_R1/pom.xml index bb6dc79f..45db6f8e 100644 --- a/nms/v1_18_R1/pom.xml +++ b/nms/v1_18_R1/pom.xml @@ -47,19 +47,7 @@ com.mojang authlib - 3.3.39 - provided - - - it.unimi.dsi - fastutil - 8.5.8 - compile - - - com.mojang - datafixerupper - 1.0.20 + 3.2.37 provided diff --git a/nms/v1_18_R1/src/main/java/me/libraryaddict/disguise/utilities/reflection/v1_18_1/ReflectionManager.java b/nms/v1_18_R1/src/main/java/me/libraryaddict/disguise/utilities/reflection/v1_18_1/ReflectionManager.java index 40ccb8c3..42fb353b 100644 --- a/nms/v1_18_R1/src/main/java/me/libraryaddict/disguise/utilities/reflection/v1_18_1/ReflectionManager.java +++ b/nms/v1_18_R1/src/main/java/me/libraryaddict/disguise/utilities/reflection/v1_18_1/ReflectionManager.java @@ -11,7 +11,6 @@ import com.mojang.authlib.Agent; import com.mojang.authlib.GameProfile; import com.mojang.authlib.ProfileLookupCallback; import com.mojang.authlib.minecraft.MinecraftSessionService; -import it.unimi.dsi.fastutil.ints.Int2ObjectMap; import me.libraryaddict.disguise.utilities.reflection.ReflectionManagerAbstract; import net.minecraft.core.BlockPos; import net.minecraft.core.Registry; @@ -201,7 +200,7 @@ public class ReflectionManager implements ReflectionManagerAbstract { ServerLevel world = ((CraftWorld) target.getWorld()).getHandle(); ServerChunkCache chunkSource = world.getChunkSource(); ChunkMap chunkMap = chunkSource.chunkMap; - Int2ObjectMap entityMap = chunkMap.entityMap; + Map entityMap = chunkMap.entityMap; ChunkMap.TrackedEntity trackedEntity = entityMap.get(target.getEntityId()); if (trackedEntity == null) { return null;