diff --git a/src/main/java/cr0s/warpdrive/block/forcefield/BlockForceField.java b/src/main/java/cr0s/warpdrive/block/forcefield/BlockForceField.java index da3e515f..4b5c97d7 100644 --- a/src/main/java/cr0s/warpdrive/block/forcefield/BlockForceField.java +++ b/src/main/java/cr0s/warpdrive/block/forcefield/BlockForceField.java @@ -98,7 +98,8 @@ public class BlockForceField extends BlockAbstractForceField implements IDamageR public MapColor getMapColor(final IBlockState blockState, final IBlockAccess blockAccess, final BlockPos blockPos) { final IExtendedBlockState blockStateExtended = (IExtendedBlockState) getExtendedState(blockState, blockAccess, blockPos); final IBlockState blockStateCamouflage = blockStateExtended.getValue(BlockProperties.CAMOUFLAGE); - if (blockStateCamouflage != Blocks.AIR) { + if ( blockStateCamouflage != null + && blockStateCamouflage.getBlock() != Blocks.AIR ) { try { return blockStateCamouflage.getMapColor(blockAccess, blockPos); } catch (final Exception exception) {