aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--patches/server/0850-SendSignEvent.patch11
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
}