Compare commits

..

2 Commits

Author SHA1 Message Date
69966c9a79 Add Monajg DataFixerUpper dependency
Some checks failed
continuous-integration/drone/push Build is failing
2022-06-03 18:15:16 +02:00
f6b043f3a5 Fix dependencies 2022-06-03 18:09:06 +02:00
3 changed files with 9 additions and 8 deletions

View File

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

View File

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

View File

@ -11,7 +11,6 @@ import com.mojang.authlib.Agent;
import com.mojang.authlib.GameProfile; import com.mojang.authlib.GameProfile;
import com.mojang.authlib.ProfileLookupCallback; import com.mojang.authlib.ProfileLookupCallback;
import com.mojang.authlib.minecraft.MinecraftSessionService; import com.mojang.authlib.minecraft.MinecraftSessionService;
import it.unimi.dsi.fastutil.ints.Int2ObjectMap;
import me.libraryaddict.disguise.utilities.reflection.ReflectionManagerAbstract; import me.libraryaddict.disguise.utilities.reflection.ReflectionManagerAbstract;
import net.minecraft.core.BlockPos; import net.minecraft.core.BlockPos;
import net.minecraft.core.Registry; import net.minecraft.core.Registry;
@ -201,7 +200,7 @@ public class ReflectionManager implements ReflectionManagerAbstract {
ServerLevel world = ((CraftWorld) target.getWorld()).getHandle(); ServerLevel world = ((CraftWorld) target.getWorld()).getHandle();
ServerChunkCache chunkSource = world.getChunkSource(); ServerChunkCache chunkSource = world.getChunkSource();
ChunkMap chunkMap = chunkSource.chunkMap; ChunkMap chunkMap = chunkSource.chunkMap;
Int2ObjectMap<ChunkMap.TrackedEntity> entityMap = chunkMap.entityMap; Map<Integer, ChunkMap.TrackedEntity> entityMap = chunkMap.entityMap;
ChunkMap.TrackedEntity trackedEntity = entityMap.get(target.getEntityId()); ChunkMap.TrackedEntity trackedEntity = entityMap.get(target.getEntityId());
if (trackedEntity == null) { if (trackedEntity == null) {
return null; return null;