Correct order

This commit is contained in:
Raoul Van den Berge
2016-05-27 20:52:25 +02:00
parent 5b47b3f0ca
commit 4ead1e9d23
3 changed files with 8 additions and 8 deletions

View File

@@ -22,7 +22,7 @@ public class TileDetector extends TileMachine implements ICompareConfig {
public static final String NBT_COMPARE = "Compare";
public static final String NBT_MODE = "Mode";
public static final String NBT_AMOUNT = "Amount";
public static final String NBT_DESC_POWERED = "Powered";
public static final String NBT_POWERED = "Powered";
private BasicItemHandler filter = new BasicItemHandler(1, this);
@@ -169,16 +169,16 @@ public class TileDetector extends TileMachine implements ICompareConfig {
@Override
public void readUpdate(NBTTagCompound tag) {
super.readUpdate(tag);
powered = tag.getBoolean(NBT_POWERED);
powered = tag.getBoolean(NBT_DESC_POWERED);
super.readUpdate(tag);
}
@Override
public NBTTagCompound writeUpdate(NBTTagCompound tag) {
super.writeUpdate(tag);
tag.setBoolean(NBT_DESC_POWERED, powered);
tag.setBoolean(NBT_POWERED, powered);
return tag;
}

View File

@@ -502,9 +502,9 @@ public class TileController extends TileBase implements IEnergyReceiver, ISynchr
@Override
public void readUpdate(NBTTagCompound tag) {
super.readUpdate(tag);
setEnergyStored(tag.getInteger(NBT_ENERGY));
super.readUpdate(tag);
}
@Override

View File

@@ -136,9 +136,9 @@ public class TileSolderer extends TileMachine {
@Override
public void readUpdate(NBTTagCompound tag) {
super.readUpdate(tag);
working = tag.getBoolean(NBT_WORKING);
super.readUpdate(tag);
}
@Override