diff --git a/src/main/java/WayofTime/bloodmagic/api/Constants.java b/src/main/java/WayofTime/bloodmagic/api/Constants.java index 5467d6c0..a14483c9 100644 --- a/src/main/java/WayofTime/bloodmagic/api/Constants.java +++ b/src/main/java/WayofTime/bloodmagic/api/Constants.java @@ -22,12 +22,13 @@ public class Constants public static final String X_COORD = "xCoord"; public static final String Y_COORD = "yCoord"; public static final String Z_COORD = "zCoord"; - public static final String PORTAL_LOCATION ="portalLocation"; + public static final String PORTAL_LOCATION = "portalLocation"; public static final String ORB_TIER = "orbTier"; public static final String CURRENT_ESSENCE = "currentEssence"; public static final String CURRENT_RITUAL = "currentRitual"; public static final String CURRENT_RITUAL_TAG = "currentRitualTag"; public static final String IS_RUNNING = "isRunning"; + public static final String IS_REDSTONED = "isStoned"; public static final String RUNTIME = "runtime"; public static final String DIRECTION = "direction"; public static final String REAGENT_TANKS = "reagentTanks"; diff --git a/src/main/java/WayofTime/bloodmagic/tile/TileMasterRitualStone.java b/src/main/java/WayofTime/bloodmagic/tile/TileMasterRitualStone.java index bc56b18d..2132ad5e 100644 --- a/src/main/java/WayofTime/bloodmagic/tile/TileMasterRitualStone.java +++ b/src/main/java/WayofTime/bloodmagic/tile/TileMasterRitualStone.java @@ -93,6 +93,7 @@ public class TileMasterRitualStone extends TileEntity implements IMasterRitualSt active = tag.getBoolean(Constants.NBT.IS_RUNNING); activeTime = tag.getInteger(Constants.NBT.RUNTIME); direction = EnumFacing.VALUES[tag.getInteger(Constants.NBT.DIRECTION)]; + redstoned = tag.getBoolean(Constants.NBT.IS_REDSTONED); } @Override @@ -111,6 +112,7 @@ public class TileMasterRitualStone extends TileEntity implements IMasterRitualSt tag.setBoolean(Constants.NBT.IS_RUNNING, isActive()); tag.setInteger(Constants.NBT.RUNTIME, getActiveTime()); tag.setInteger(Constants.NBT.DIRECTION, direction.getIndex()); + tag.setBoolean(Constants.NBT.IS_REDSTONED, redstoned); } @Override