SteamWar/SpigotCore
Archiviert
13
0

Fix 1.9-1.15 ChunkHider
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Lixfel 2024-03-14 21:46:34 +01:00
Ursprung 6019083138
Commit a8cdd7a70f

Datei anzeigen

@ -62,7 +62,7 @@ public class ChunkHider9 extends ChunkHider8 {
int primaryBitMask = mapChunkBitMask.get(packet); int primaryBitMask = mapChunkBitMask.get(packet);
ByteBuf in = Unpooled.wrappedBuffer(mapChunkData.get(packet)); ByteBuf in = Unpooled.wrappedBuffer(mapChunkData.get(packet));
ByteBuf out = Unpooled.buffer(in.readableBytes() + 64); ByteBuf out = Unpooled.buffer(in.readableBytes() + 64);
for(int chunkY = 0; chunkY < p.getWorld().getMaxHeight(); chunkY++) { for(int chunkY = 0; chunkY < p.getWorld().getMaxHeight()/16; chunkY++) {
if(((1 << chunkY) & primaryBitMask) == 0) if(((1 << chunkY) & primaryBitMask) == 0)
continue; continue;