|
|
@ -20,7 +20,7 @@ public abstract class AbstractWireTileEntity extends TileEntity {
|
|
|
|
public void readFromNBT(NBTTagCompound nbttagcompound) {
|
|
|
|
public void readFromNBT(NBTTagCompound nbttagcompound) {
|
|
|
|
super.readFromNBT(nbttagcompound);
|
|
|
|
super.readFromNBT(nbttagcompound);
|
|
|
|
this.initialized = nbttagcompound.getBoolean("init");
|
|
|
|
this.initialized = nbttagcompound.getBoolean("init");
|
|
|
|
this.initialized = nbttagcompound.getBoolean("set");
|
|
|
|
this.hasSettings = nbttagcompound.getBoolean("set");
|
|
|
|
if(nbttagcompound.getBoolean("inputExists")){
|
|
|
|
if(nbttagcompound.getBoolean("inputExists")){
|
|
|
|
this.inputs = new WiringButton[nbttagcompound.getInteger("inputLength")];
|
|
|
|
this.inputs = new WiringButton[nbttagcompound.getInteger("inputLength")];
|
|
|
|
NBTTagList nbttaglistInputs = nbttagcompound.getTagList("Inputs");
|
|
|
|
NBTTagList nbttaglistInputs = nbttagcompound.getTagList("Inputs");
|
|
|
|