Compare commits

..

No commits in common. "69966c9a794487427d48dc28a2f0941c9aaac896" and "0c72e4915dd45c446508728d1cf922def357e720" have entirely different histories.

3 changed files with 8 additions and 9 deletions

View File

@ -10,6 +10,7 @@
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>v1_17_R1</artifactId>
<version>1.0-SNAPSHOT</version>

View File

@ -22,11 +22,6 @@
</properties>
<dependencies>
<dependency>
<groupId>com.mojang</groupId>
<artifactId>datafixerupper</artifactId>
<version>1.0.20</version>
</dependency>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot</artifactId>
@ -52,7 +47,7 @@
<dependency>
<groupId>com.mojang</groupId>
<artifactId>authlib</artifactId>
<version>3.2.37</version>
<version>3.3.39</version>
<scope>provided</scope>
</dependency>
<dependency>
@ -62,8 +57,10 @@
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot</artifactId>
<groupId>com.mojang</groupId>
<artifactId>datafixerupper</artifactId>
<version>1.0.20</version>
<scope>provided</scope>
</dependency>
</dependencies>

View File

@ -11,6 +11,7 @@ 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;
@ -200,7 +201,7 @@ public class ReflectionManager implements ReflectionManagerAbstract {
ServerLevel world = ((CraftWorld) target.getWorld()).getHandle();
ServerChunkCache chunkSource = world.getChunkSource();
ChunkMap chunkMap = chunkSource.chunkMap;
Map<Integer, ChunkMap.TrackedEntity> entityMap = chunkMap.entityMap;
Int2ObjectMap<ChunkMap.TrackedEntity> entityMap = chunkMap.entityMap;
ChunkMap.TrackedEntity trackedEntity = entityMap.get(target.getEntityId());
if (trackedEntity == null) {
return null;