Write locked to nbt

This commit is contained in:
modmuss50 2018-08-03 17:46:58 +01:00
parent c461dd8cf5
commit e5d161cace
No known key found for this signature in database
GPG key ID: 773D17BE8BF49C82

View file

@ -381,11 +381,15 @@ public class TileAutoCraftingTable extends TilePowerAcceptor
@Override @Override
public NBTTagCompound writeToNBT(NBTTagCompound tag) { public NBTTagCompound writeToNBT(NBTTagCompound tag) {
tag.setBoolean("locked", locked);
return super.writeToNBT(tag); return super.writeToNBT(tag);
} }
@Override @Override
public void readFromNBT(NBTTagCompound tag) { public void readFromNBT(NBTTagCompound tag) {
if(tag.hasKey("locked")){
locked = tag.getBoolean("locked");
}
super.readFromNBT(tag); super.readFromNBT(tag);
} }