Fixed transporter beacon loosing enable state on chunk loading

This commit is contained in:
Unknown 2018-06-21 11:01:39 +02:00
parent 8f894a7129
commit 85176a5832

View file

@ -234,6 +234,7 @@ public class TileEntityTransporterBeacon extends TileEntityAbstractEnergy implem
tagCompound.setLong("uuidLeast", uuidTransporterCore.getLeastSignificantBits());
}
tagCompound.setBoolean("isEnabled", isEnabled);
tagCompound.setInteger("tickDeploying", tickDeploying);
}
@ -248,6 +249,7 @@ public class TileEntityTransporterBeacon extends TileEntityAbstractEnergy implem
nameTransporterCore = "";
}
isEnabled = !tagCompound.hasKey("isEnabled") || tagCompound.getBoolean("isEnabled");
tickDeploying = tagCompound.getInteger("tickDeploying");
}