mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 19:29:31 +00:00
Fix missing nullcheck in platform. Closes #3168
This commit is contained in:
1 parent
647e122418
commit
bb68017141
1 file changed
+3
-1
@@ -113,7 +113,9 @@ public class BlockPlatform extends BlockMod implements IWandable, IManaCollision
|
||||
BlockItemUseContext ctx = new BlockItemUseContext(world, player, hand, currentStack, hit);
|
||||
BlockState changeState = Block.getBlockFromItem(currentStack.getItem()).getStateForPlacement(ctx);
|
||||
|
||||
if(isValidBlock(changeState, world, pos) && !(changeState.getBlock() instanceof BlockPlatform) && changeState.getMaterial() != Material.AIR) {
|
||||
if(changeState != null && isValidBlock(changeState, world, pos)
|
||||
&& !(changeState.getBlock() instanceof BlockPlatform)
|
||||
&& changeState.getMaterial() != Material.AIR) {
|
||||
if (!world.isRemote) {
|
||||
camo.camoState = changeState;
|
||||
world.notifyBlockUpdate(pos, state, state, 3);
|
||||
|
||||
Reference in new issue
Block a user