From 6924c01889730cfa0c21d9ba29e77f3601bdb22e Mon Sep 17 00:00:00 2001 From: Unknown Date: Tue, 1 May 2018 03:23:26 +0200 Subject: [PATCH] Fixed transporter beacon lighting while being inactive --- .../cr0s/warpdrive/block/movement/BlockTransporterBeacon.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/cr0s/warpdrive/block/movement/BlockTransporterBeacon.java b/src/main/java/cr0s/warpdrive/block/movement/BlockTransporterBeacon.java index f8c31739..cd564cfc 100644 --- a/src/main/java/cr0s/warpdrive/block/movement/BlockTransporterBeacon.java +++ b/src/main/java/cr0s/warpdrive/block/movement/BlockTransporterBeacon.java @@ -82,7 +82,9 @@ public class BlockTransporterBeacon extends BlockAbstractContainer { @Override public int getLightValue(final IBlockAccess blockAccess, final int x, final int y, final int z) { final int metadata = blockAccess.getBlockMetadata(x, y, z); - return metadata == 0 ? 0 : 6; + final EnumTransporterBeaconState enumTransporterBeaconState = EnumTransporterBeaconState.get(metadata); + return enumTransporterBeaconState == EnumTransporterBeaconState.PACKED_ACTIVE + || enumTransporterBeaconState == EnumTransporterBeaconState.DEPLOYED_ACTIVE ? 6 : 0; } @Override