added the whole exporter. does nothing yet though

This commit is contained in:
Raoul Van den Berge
2015-12-19 00:47:09 +01:00
parent cfcb518ddd
commit 2e9862d339
12 changed files with 252 additions and 5 deletions

View File

@@ -98,7 +98,9 @@ public abstract class TileMachine extends TileBase implements INetworkTile {
public void readFromNBT(NBTTagCompound nbt) {
super.readFromNBT(nbt);
redstoneMode = RedstoneMode.getById(nbt.getInteger(NBT_REDSTONE_MODE));
if (nbt.hasKey(NBT_REDSTONE_MODE)) {
redstoneMode = RedstoneMode.getById(nbt.getInteger(NBT_REDSTONE_MODE));
}
}
@Override