Skip to content

Commit

Permalink
Use correct ClientboundLevelChunkWithLightPacket constructor in later…
Browse files Browse the repository at this point in the history
… patch
  • Loading branch information
kennytv committed Sep 24, 2023
1 parent 025c5d7 commit 866d2d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions patches/server/0775-Force-close-world-loading-screen.patch
Original file line number Diff line number Diff line change
Expand Up @@ -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.

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
+++ b/src/main/java/net/minecraft/server/players/PlayerList.java
@@ -379,6 +379,16 @@ public abstract class PlayerList {
Expand All @@ -23,7 +23,7 @@ index d5d83e605a33d2edd1c7c0ef7cfa8af35e22dcc9..cdf40a67c868a50a695b7501381171dd
+ .getHolderOrThrow(net.minecraft.world.level.biome.Biomes.PLAINS);
+ player.connection.send(new net.minecraft.network.protocol.game.ClientboundLevelChunkWithLightPacket(
+ 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
Expand Down

0 comments on commit 866d2d9

Please sign in to comment.