diff options
author | Shane Freeder <[email protected]> | 2022-01-11 11:38:17 +0000 |
---|---|---|
committer | Shane Freeder <[email protected]> | 2022-03-13 20:48:57 +0000 |
commit | 6ff60b33a647e9a35ddf37f3ab33901211ac5f64 (patch) | |
tree | d69f1c24293fdbb7ef4e2147d3a7744f09de3581 | |
parent | 43e47c1d334e6f93859c7666ba8fc872c75a1141 (diff) | |
download | Paper-6ff60b33a647e9a35ddf37f3ab33901211ac5f64.tar.gz Paper-6ff60b33a647e9a35ddf37f3ab33901211ac5f64.zip |
move flag set to ensure that it's always captured
-rw-r--r-- | patches/server/0850-SendSignEvent.patch | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/patches/server/0850-SendSignEvent.patch b/patches/server/0850-SendSignEvent.patch index 4d340c2aef..1145be7bcf 100644 --- a/patches/server/0850-SendSignEvent.patch +++ b/patches/server/0850-SendSignEvent.patch @@ -65,7 +65,7 @@ index 0000000000000000000000000000000000000000..d4fc17586ff4eb07708636ad9ad8c56e + } +} diff --git a/src/main/java/net/minecraft/world/level/block/entity/SignBlockEntity.java b/src/main/java/net/minecraft/world/level/block/entity/SignBlockEntity.java -index 6371176fba41218a209ea59b4cafe5b2d4a685fd..8527e3c7d814918539ca47ac002c0761ab5fc8fe 100644 +index 6371176fba41218a209ea59b4cafe5b2d4a685fd..fba8368c89dc7edeaa5aceb47d59c30b9e1d23fc 100644 --- a/src/main/java/net/minecraft/world/level/block/entity/SignBlockEntity.java +++ b/src/main/java/net/minecraft/world/level/block/entity/SignBlockEntity.java @@ -27,6 +27,7 @@ import net.minecraft.world.phys.Vec3; @@ -102,16 +102,17 @@ index 6371176fba41218a209ea59b4cafe5b2d4a685fd..8527e3c7d814918539ca47ac002c0761 for (int i = 0; i < 4; ++i) { Component ichatbasecomponent = this.messages[i]; String s = Component.Serializer.toJson(ichatbasecomponent); -@@ -181,7 +201,14 @@ public class SignBlockEntity extends BlockEntity implements CommandSource { // C +@@ -186,7 +206,15 @@ public class SignBlockEntity extends BlockEntity implements CommandSource { // C @Override - public ClientboundBlockEntityDataPacket getUpdatePacket() { + public CompoundTag getUpdateTag() { + // Paper start - SignSendEvent ++ boolean prev = this.isSending; + this.isSending = true; + try { - return ClientboundBlockEntityDataPacket.create(this); + return this.saveWithoutMetadata(); + } finally { -+ this.isSending = false; ++ this.isSending = prev; + } + // Paper end } |