Archiviert
13
0

Fixed crash with dispensers dispensing dispensables

Dieser Commit ist enthalten in:
Nathan Adams 2011-12-12 21:23:46 +00:00
Ursprung fa7ad9a264
Commit 5412d6f5a8

Datei anzeigen

@ -43,11 +43,13 @@ public final class ItemStack {
public ItemStack(int id, int count, int data, NBTTagList enchantments) { public ItemStack(int id, int count, int data, NBTTagList enchantments) {
this(id, count, data); this(id, count, data);
// taken from .addEnchantment // taken from .addEnchantment
if (this.tag == null) { if (Item.byId[this.id].getMaxStackSize() == 1) {
this.setTag(new NBTTagCompound()); if (this.tag == null) {
} this.setTag(new NBTTagCompound());
}
this.tag.set("ench", enchantments); // modify this part to use passed in enchantments list this.tag.set("ench", enchantments.clone()); // modify this part to use passed in enchantments list
}
} }
// CraftBukkit end // CraftBukkit end