Write locked to nbt
This commit is contained in:
parent
c461dd8cf5
commit
e5d161cace
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue