mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Made books less powerful, though you should still read them!
This commit is contained in:
1 parent
bd6c824c11
commit
df7f86d028
2 files changed
+15
-1
No files matched your search
@@ -329,4 +329,14 @@ public final class ItemStack {
|
||||
public boolean hasEnchantments() {
|
||||
return this.tag != null && this.tag.hasKey("ench");
|
||||
}
|
||||
|
||||
// CraftBukkit start - temporary method for book fix
|
||||
public void a(String s, NBTBase nbtbase) {
|
||||
if (this.tag == null) {
|
||||
this.setTag(new NBTTagCompound());
|
||||
}
|
||||
|
||||
this.tag.set(s, nbtbase);
|
||||
}
|
||||
// CraftBukkit end
|
||||
}
|
||||
Reference in new issue
Block a user