Skip to content

Commit

Permalink
Async entity lookup fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ds58 committed Aug 13, 2024
1 parent 43938bb commit 1f76992
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public void checkPacketPlayOutSpawnEntity(Object packetHandle) throws EntityNbtN
Entity entity = null;

for (ServerLevel worldServer : MinecraftServer.getServer().getAllLevels()) {
entity = worldServer.getEntity(entityId);
entity = worldServer.moonrise$getEntityLookup().get(entityId);
if (entity != null) break;
}

Expand Down Expand Up @@ -189,7 +189,7 @@ public void stripNbtFromItemEntity(UUID entityId) {
Entity entity = null;

for (ServerLevel worldServer : MinecraftServer.getServer().getAllLevels()) {
entity = worldServer.getEntity(entityId);
entity = worldServer.moonrise$getEntityLookup().get(entityId);
if (entity != null) break;
}

Expand Down

0 comments on commit 1f76992

Please sign in to comment.