From c93f56ac1c1278874a2ff117162308dcf97a7b75 Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Mon, 22 Nov 2021 11:45:40 -0800 Subject: [PATCH] Removed patches go in removed --- ...edDebugInfo-not-initialized-on-client.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 patches/removed/1.18/0078-Fix-reducedDebugInfo-not-initialized-on-client.patch diff --git a/patches/removed/1.18/0078-Fix-reducedDebugInfo-not-initialized-on-client.patch b/patches/removed/1.18/0078-Fix-reducedDebugInfo-not-initialized-on-client.patch new file mode 100644 index 0000000000..5ef0fe3665 --- /dev/null +++ b/patches/removed/1.18/0078-Fix-reducedDebugInfo-not-initialized-on-client.patch @@ -0,0 +1,18 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Jedediah Smith +Date: Sat, 2 Apr 2016 20:37:03 -0400 +Subject: [PATCH] Fix reducedDebugInfo not initialized on client + + +diff --git a/src/main/java/net/minecraft/server/players/PlayerList.java b/src/main/java/net/minecraft/server/players/PlayerList.java +index 0ea5574ab43141a69e6aa5e05aeb548660f126e1..b2638a7dbe2ead274e9e2e337babe41c90179f8b 100644 +--- a/src/main/java/net/minecraft/server/players/PlayerList.java ++++ b/src/main/java/net/minecraft/server/players/PlayerList.java +@@ -249,6 +249,7 @@ public abstract class PlayerList { + playerconnection.send(new ClientboundSetCarriedItemPacket(player.getInventory().selected)); + playerconnection.send(new ClientboundUpdateRecipesPacket(this.server.getRecipeManager().getRecipes())); + playerconnection.send(new ClientboundUpdateTagsPacket(this.server.getTags().serializeToNetwork((RegistryAccess) this.registryHolder))); ++ playerconnection.send(new ClientboundEntityEventPacket(player, (byte) (worldserver1.getGameRules().getBoolean(GameRules.RULE_REDUCEDDEBUGINFO) ? 22 : 23))); // Paper - fix this rule not being initialized on the client + this.sendPlayerPermissionLevel(player); + player.getStats().markAllDirty(); + player.getRecipeBook().sendInitialRecipeBook(player);