Small fix

This commit is contained in:
Raoul Van den Berge
2016-03-19 18:35:48 +01:00
parent 99fff32886
commit 0ea3fc494d

View File

@@ -26,6 +26,7 @@ public class StorageItem
this.type = Item.getItemById(buf.readInt()); this.type = Item.getItemById(buf.readInt());
this.quantity = buf.readInt(); this.quantity = buf.readInt();
this.damage = buf.readInt(); this.damage = buf.readInt();
this.craftable = buf.readBoolean();
this.tag = buf.readBoolean() ? ByteBufUtils.readTag(buf) : null; this.tag = buf.readBoolean() ? ByteBufUtils.readTag(buf) : null;
} }
@@ -62,6 +63,7 @@ public class StorageItem
buf.writeInt(Item.getIdFromItem(type)); buf.writeInt(Item.getIdFromItem(type));
buf.writeInt(quantity); buf.writeInt(quantity);
buf.writeInt(damage); buf.writeInt(damage);
buf.writeBoolean(craftable);
buf.writeBoolean(tag != null); buf.writeBoolean(tag != null);
if (tag != null) if (tag != null)