Commits

md_5 authored bbe3d58efc4
SPIGOT-5650: Lectern.setPage(int) causes a NullPointerException
No tags

nms-patches/TileEntityLectern.patch

Modified
82 82 + }
83 83 + // CraftBukkit end
84 84
85 85 @Override
86 86 public int getMaxStackSize() {
87 87 - return 1;
88 88 + return maxStack; // CraftBukkit
89 89 }
90 90
91 91 @Override
92 +@@ -135,7 +197,7 @@
93 + if (j != this.page) {
94 + this.page = j;
95 + this.update();
96 +- BlockLectern.a(this.getWorld(), this.getPosition(), this.getBlock());
97 ++ if (this.world != null) BlockLectern.a(this.getWorld(), this.getPosition(), this.getBlock()); // CraftBukkit
98 + }
99 +
100 + }
92 101 @@ -158,6 +220,32 @@
93 102 return itemstack;
94 103 }
95 104
96 105 + // CraftBukkit start
97 106 + @Override
98 107 + public void sendMessage(IChatBaseComponent ichatbasecomponent) {
99 108 + }
100 109 +
101 110 + @Override

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut