From 85176a583262b76c964cbfdbece2ea75d58742fb Mon Sep 17 00:00:00 2001 From: Unknown Date: Thu, 21 Jun 2018 11:01:39 +0200 Subject: [PATCH] Fixed transporter beacon loosing enable state on chunk loading --- .../warpdrive/block/movement/TileEntityTransporterBeacon.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/cr0s/warpdrive/block/movement/TileEntityTransporterBeacon.java b/src/main/java/cr0s/warpdrive/block/movement/TileEntityTransporterBeacon.java index b3d0ac27..ad1373e0 100644 --- a/src/main/java/cr0s/warpdrive/block/movement/TileEntityTransporterBeacon.java +++ b/src/main/java/cr0s/warpdrive/block/movement/TileEntityTransporterBeacon.java @@ -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"); }