Fixed transporter beacon lighting while being inactive

This commit is contained in:
Unknown 2018-05-01 03:23:26 +02:00 committed by unknown
parent 9a356fc162
commit 6924c01889

View file

@ -82,7 +82,9 @@ public class BlockTransporterBeacon extends BlockAbstractContainer {
@Override @Override
public int getLightValue(final IBlockAccess blockAccess, final int x, final int y, final int z) { public int getLightValue(final IBlockAccess blockAccess, final int x, final int y, final int z) {
final int metadata = blockAccess.getBlockMetadata(x, y, 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 @Override