Fixed rituals not correctly re-activating when taking off a redstone signal after reloading the world.
This commit is contained in:
parent
34a9b5a7ec
commit
19bf728da3
2 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue