SPIGOT-5650: Lectern.setPage(int) causes a NullPointerException
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -89,6 +89,15 @@
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -135,7 +197,7 @@
|
||||
if (j != this.page) {
|
||||
this.page = j;
|
||||
this.update();
|
||||
- BlockLectern.a(this.getWorld(), this.getPosition(), this.getBlock());
|
||||
+ if (this.world != null) BlockLectern.a(this.getWorld(), this.getPosition(), this.getBlock()); // CraftBukkit
|
||||
}
|
||||
|
||||
}
|
||||
@@ -158,6 +220,32 @@
|
||||
return itemstack;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user