Fixed transporter beacon lighting while being inactive
This commit is contained in:
parent
9a356fc162
commit
6924c01889
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue