mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 20:23:53 -07:00
Made books less powerful, though you should still read them!
This commit is contained in:
@@ -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