mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 03:25:18 +00:00
1.21.3 update
This commit is contained in:
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));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user