-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
32 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: Aikar <[email protected]> | ||
Date: Fri, 29 Apr 2016 20:02:00 -0400 | ||
Subject: [PATCH] Improve Maps (in item frames) performance and bug fixes | ||
|
||
|
@@ -11,10 +13,10 @@ custom renderers are in use, defaulting to the much simpler Vanilla system. | |
Additionally, numerous issues to player position tracking on maps has been fixed. | ||
|
||
diff --git a/net/minecraft/server/level/ServerLevel.java b/net/minecraft/server/level/ServerLevel.java | ||
index 91a1330d7308c9faadaf773d056493e1df5dcd1e..1d7e9492a474c99dff372d6b57f1f195e42d5114 100644 | ||
index 678b3027e8c53e6021ea49afa69cdbe5f60dcf25..cce78d73e8adafd66d0f3ffb3fabb5e6c025c7df 100644 | ||
--- a/net/minecraft/server/level/ServerLevel.java | ||
+++ b/net/minecraft/server/level/ServerLevel.java | ||
@@ -2296,7 +2296,9 @@ public class ServerLevel extends Level implements ServerEntityGetter, WorldGenLe | ||
@@ -2282,7 +2282,9 @@ public class ServerLevel extends Level implements ServerEntityGetter, WorldGenLe | ||
} | ||
|
||
map.carriedByPlayers.remove(player); | ||
|
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ creating too large of a packet to sed. | |
Co-authored-by: Spottedleaf <[email protected]> | ||
|
||
diff --git a/net/minecraft/network/protocol/game/ClientboundLevelChunkPacketData.java b/net/minecraft/network/protocol/game/ClientboundLevelChunkPacketData.java | ||
index 5d1943d37dfad0c12e77179f0866851532d983e9..0a7e6c639d5125a135a43476bbb2ef2d682f743c 100644 | ||
index 3aea76690bc3e35758d3bf274777130af17d8a0f..9e321ef1c3d5803519b243685f4ee598dc0cf640 100644 | ||
--- a/net/minecraft/network/protocol/game/ClientboundLevelChunkPacketData.java | ||
+++ b/net/minecraft/network/protocol/game/ClientboundLevelChunkPacketData.java | ||
@@ -27,6 +27,14 @@ public class ClientboundLevelChunkPacketData { | ||
|
@@ -25,11 +25,11 @@ index 5d1943d37dfad0c12e77179f0866851532d983e9..0a7e6c639d5125a135a43476bbb2ef2d | |
+ } | ||
+ // Paper end - Handle oversized block entities in chunks | ||
|
||
public ClientboundLevelChunkPacketData(LevelChunk levelChunk) { | ||
this.heightmaps = new CompoundTag(); | ||
@@ -40,8 +48,18 @@ public class ClientboundLevelChunkPacketData { | ||
this.buffer = new byte[calculateChunkSize(levelChunk)]; | ||
extractChunkData(new FriendlyByteBuf(this.getWriteBuffer()), levelChunk); | ||
// Paper start - Anti-Xray - Add chunk packet info | ||
@Deprecated @io.papermc.paper.annotation.DoNotUse | ||
@@ -50,8 +58,18 @@ public class ClientboundLevelChunkPacketData { | ||
} | ||
extractChunkData(new FriendlyByteBuf(this.getWriteBuffer()), levelChunk, chunkPacketInfo); | ||
this.blockEntitiesData = Lists.newArrayList(); | ||
+ int totalTileEntities = 0; // Paper - Handle oversized block entities in chunks | ||
|
||
|
@@ -47,10 +47,10 @@ index 5d1943d37dfad0c12e77179f0866851532d983e9..0a7e6c639d5125a135a43476bbb2ef2d | |
} | ||
} | ||
diff --git a/net/minecraft/network/protocol/game/ClientboundLevelChunkWithLightPacket.java b/net/minecraft/network/protocol/game/ClientboundLevelChunkWithLightPacket.java | ||
index aadf2dccb996e422cacf8bb510cc642e69ee4972..5288de783481b7e932017c679b9eaa715b8826c6 100644 | ||
index d2d21fe8d7275b01454e09be252d7dd7710cdc2d..5eef540242413df3ed136aa8837866a94cc285b3 100644 | ||
--- a/net/minecraft/network/protocol/game/ClientboundLevelChunkWithLightPacket.java | ||
+++ b/net/minecraft/network/protocol/game/ClientboundLevelChunkWithLightPacket.java | ||
@@ -66,4 +66,11 @@ public class ClientboundLevelChunkWithLightPacket implements Packet<ClientGamePa | ||
@@ -84,4 +84,11 @@ public class ClientboundLevelChunkWithLightPacket implements Packet<ClientGamePa | ||
public ClientboundLightUpdatePacketData getLightData() { | ||
return this.lightData; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters