From 7a0f61a6e70e592b2cb35ae7ff4365207446cd42 Mon Sep 17 00:00:00 2001 From: blablubbabc Date: Sat, 29 Jun 2019 19:54:50 +0200 Subject: [PATCH] SPIGOT-5122: Skip world#notify if sign has no world. --- nms-patches/TileEntitySign.patch | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nms-patches/TileEntitySign.patch b/nms-patches/TileEntitySign.patch index 49ebfd13e9..dc61748c51 100644 --- a/nms-patches/TileEntitySign.patch +++ b/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;