From 2667bfc200527df5bfe215796323bc653779ffa9 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sat, 29 Jun 2019 19:54:50 +0200 Subject: [PATCH] SPIGOT-5122: Skip world#notify if sign has no world. By: blablubbabc --- paper-server/nms-patches/TileEntitySign.patch | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/paper-server/nms-patches/TileEntitySign.patch b/paper-server/nms-patches/TileEntitySign.patch index 49ebfd13e9..dc61748c51 100644 --- a/paper-server/nms-patches/TileEntitySign.patch +++ b/paper-server/nms-patches/TileEntitySign.patch @@ -107,3 +107,12 @@ } public EnumColor getColor() { +@@ -126,7 +178,7 @@ + if (enumcolor != this.getColor()) { + this.color = enumcolor; + this.update(); +- this.world.notify(this.getPosition(), this.getBlock(), this.getBlock(), 3); ++ if (this.world != null) this.world.notify(this.getPosition(), this.getBlock(), this.getBlock(), 3); // CraftBukkit - skip notify if world is null (SPIGOT-5122) + return true; + } else { + return false;