Use correct ClientboundLevelChunkWithLightPacket constructor in later patch

Dieser Commit ist enthalten in:
Nassim Jahnke 2023-09-24 16:29:07 +10:00
Ursprung 025c5d7a28
Commit 866d2d9f4a
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: EF6771C01F6EF02F

Datei anzeigen

@ -10,7 +10,7 @@ so we do not need that. The client only needs the chunk it is currently in to
be loaded to close the loading screen, so we just send an empty one. be loaded to close the loading screen, so we just send an empty one.
diff --git a/src/main/java/net/minecraft/server/players/PlayerList.java b/src/main/java/net/minecraft/server/players/PlayerList.java diff --git a/src/main/java/net/minecraft/server/players/PlayerList.java b/src/main/java/net/minecraft/server/players/PlayerList.java
index d5d83e605a33d2edd1c7c0ef7cfa8af35e22dcc9..cdf40a67c868a50a695b7501381171dd0fe6579b 100644 index d5d83e605a33d2edd1c7c0ef7cfa8af35e22dcc9..76e83980e96f52a8cea71d9c5e80c998021fe2ff 100644
--- a/src/main/java/net/minecraft/server/players/PlayerList.java --- a/src/main/java/net/minecraft/server/players/PlayerList.java
+++ b/src/main/java/net/minecraft/server/players/PlayerList.java +++ b/src/main/java/net/minecraft/server/players/PlayerList.java
@@ -379,6 +379,16 @@ public abstract class PlayerList { @@ -379,6 +379,16 @@ public abstract class PlayerList {
@ -23,7 +23,7 @@ index d5d83e605a33d2edd1c7c0ef7cfa8af35e22dcc9..cdf40a67c868a50a695b7501381171dd
+ .getHolderOrThrow(net.minecraft.world.level.biome.Biomes.PLAINS); + .getHolderOrThrow(net.minecraft.world.level.biome.Biomes.PLAINS);
+ player.connection.send(new net.minecraft.network.protocol.game.ClientboundLevelChunkWithLightPacket( + player.connection.send(new net.minecraft.network.protocol.game.ClientboundLevelChunkWithLightPacket(
+ new net.minecraft.world.level.chunk.EmptyLevelChunk(worldserver1, player.chunkPosition(), plains), + new net.minecraft.world.level.chunk.EmptyLevelChunk(worldserver1, player.chunkPosition(), plains),
+ worldserver1.getLightEngine(), (java.util.BitSet)null, (java.util.BitSet) null) + worldserver1.getLightEngine(), (java.util.BitSet)null, (java.util.BitSet) null, false)
+ ); + );
+ } + }
+ // Paper end + // Paper end