mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-11 17:31:06 +01:00
SPIGOT-5122: Skip world#notify if sign has no world.
This commit is contained in:
parent
bf0ea33de6
commit
7a0f61a6e7
1 changed files with 9 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue