1.21.3 update

This commit is contained in:
LexManos committed 2024-10-25 18:04:34 -07:00
1 parent c22589b5b3
commit 086bcb7148
806 files changed
+6314 -10501

No files matched your search

@@ -165,6 +165,7 @@ public record PacketDistributor<T>(BiFunction<PacketDistributor<T>, T, Consumer<
return p -> ((ServerChunkCache)entity.getCommandSenderWorld().getChunkSource()).broadcastAndSend(entity, p);
}
@SuppressWarnings("resource")
private Consumer<Packet<?>> trackingChunk(LevelChunk chunk) {
return p -> ((ServerChunkCache)chunk.getLevel().getChunkSource()).chunkMap.getPlayers(chunk.getPos(), false).forEach(e -> e.connection.send(p));
}