aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorShane Freeder <[email protected]>2024-10-20 18:33:01 +0100
committerBjarne Koll <[email protected]>2024-10-21 00:18:25 +0200
commitd1393b8ef1a2e9223d92c3c9ad4e638130bc11cb (patch)
tree766ebe40feeeeeb3c3db5cdf28edf2c9a27914af
parent80055697aae814783c77b60cf1741fb68e624f33 (diff)
downloadPaper-d1393b8ef1a2e9223d92c3c9ad4e638130bc11cb.tar.gz
Paper-d1393b8ef1a2e9223d92c3c9ad4e638130bc11cb.zip
align comments
-rw-r--r--patches/server/1068-Always-send-Banner-patterns-to-the-client.patch9
1 files changed, 5 insertions, 4 deletions
diff --git a/patches/server/1068-Always-send-Banner-patterns-to-the-client.patch b/patches/server/1068-Always-send-Banner-patterns-to-the-client.patch
index a94cb24ca6..ab28662970 100644
--- a/patches/server/1068-Always-send-Banner-patterns-to-the-client.patch
+++ b/patches/server/1068-Always-send-Banner-patterns-to-the-client.patch
@@ -9,7 +9,7 @@ flow for them, this is not all too surprising. So, we shall resort to always
sending the patterns over the network for update packets.
diff --git a/src/main/java/net/minecraft/world/level/block/entity/BannerBlockEntity.java b/src/main/java/net/minecraft/world/level/block/entity/BannerBlockEntity.java
-index 60c26076e7acf869fa0e20fdc14eeec341387d99..91352f49fba00481027824a87d30b5f5974c09d4 100644
+index 60c26076e7acf869fa0e20fdc14eeec341387d99..41ca62d6b4579c5d7365c4473df82a9dbce4bde1 100644
--- a/src/main/java/net/minecraft/world/level/block/entity/BannerBlockEntity.java
+++ b/src/main/java/net/minecraft/world/level/block/entity/BannerBlockEntity.java
@@ -63,7 +63,7 @@ public class BannerBlockEntity extends BlockEntity implements Nameable {
@@ -21,12 +21,12 @@ index 60c26076e7acf869fa0e20fdc14eeec341387d99..91352f49fba00481027824a87d30b5f5
nbt.put("patterns", (Tag) BannerPatternLayers.CODEC.encodeStart(registryLookup.createSerializationContext(NbtOps.INSTANCE), this.patterns).getOrThrow());
}
-@@ -95,9 +95,17 @@ public class BannerBlockEntity extends BlockEntity implements Nameable {
+@@ -95,9 +95,18 @@ public class BannerBlockEntity extends BlockEntity implements Nameable {
return ClientboundBlockEntityDataPacket.create(this);
}
-+ // Paper start
-+ boolean serialisingForNetwork = false; // paper - always send patterns to client
++ // Paper start - always send patterns to client
++ boolean serialisingForNetwork = false;
@Override
public CompoundTag getUpdateTag(HolderLookup.Provider registryLookup) {
- return this.saveWithoutMetadata(registryLookup);
@@ -37,6 +37,7 @@ index 60c26076e7acf869fa0e20fdc14eeec341387d99..91352f49fba00481027824a87d30b5f5
+ } finally {
+ serialisingForNetwork = wasSerialisingForNetwork;
+ }
++ // Paper end - always send patterns to client
}
public BannerPatternLayers getPatterns() {