diff --git a/src/main/java/cr0s/warpdrive/block/collection/TileEntityAbstractMiner.java b/src/main/java/cr0s/warpdrive/block/collection/TileEntityAbstractMiner.java index 824252bb..74029040 100644 --- a/src/main/java/cr0s/warpdrive/block/collection/TileEntityAbstractMiner.java +++ b/src/main/java/cr0s/warpdrive/block/collection/TileEntityAbstractMiner.java @@ -102,10 +102,10 @@ public abstract class TileEntityAbstractMiner extends TileEntityAbstractLaser { // intended code if AccessTransformer was working with gradlew: // itemStackDrops.add(blockState.getBlock().getSilkTouchDrop(blockState)); - ItemStack itemStackDrop; + final ItemStack itemStackDrop; try { itemStackDrop = (ItemStack) WarpDrive.methodBlock_getSilkTouch.invoke(blockState.getBlock(), blockState); - } catch (IllegalAccessException | InvocationTargetException exception) { + } catch (final IllegalAccessException | InvocationTargetException exception) { throw new RuntimeException(exception); } if (!itemStackDrop.isEmpty()) { diff --git a/src/main/java/cr0s/warpdrive/block/collection/TileEntityLaserTreeFarm.java b/src/main/java/cr0s/warpdrive/block/collection/TileEntityLaserTreeFarm.java index 56d7a5f9..33673fed 100644 --- a/src/main/java/cr0s/warpdrive/block/collection/TileEntityLaserTreeFarm.java +++ b/src/main/java/cr0s/warpdrive/block/collection/TileEntityLaserTreeFarm.java @@ -272,8 +272,8 @@ public class TileEntityLaserTreeFarm extends TileEntityAbstractMiner { final BlockPos valuable = valuables.get(valuableIndex); final IBlockState blockStateValuable = world.getBlockState(valuable); valuableIndex++; - boolean isLog = isLog(blockStateValuable.getBlock()); - boolean isLeaf = isLeaf(blockStateValuable.getBlock()); + final boolean isLog = isLog(blockStateValuable.getBlock()); + final boolean isLeaf = isLeaf(blockStateValuable.getBlock()); // check area protection if (isBlockBreakCanceled(null, world, valuable)) { diff --git a/src/main/java/cr0s/warpdrive/block/forcefield/TileEntityForceField.java b/src/main/java/cr0s/warpdrive/block/forcefield/TileEntityForceField.java index 0fc9cf01..ae74cee7 100644 --- a/src/main/java/cr0s/warpdrive/block/forcefield/TileEntityForceField.java +++ b/src/main/java/cr0s/warpdrive/block/forcefield/TileEntityForceField.java @@ -118,7 +118,7 @@ public class TileEntityForceField extends TileEntityAbstractBase { cache_lightCamouflage = forceFieldSetup.getCamouflageLight(); } } - IBlockState blockState = world.getBlockState(pos); + final IBlockState blockState = world.getBlockState(pos); world.notifyBlockUpdate(pos, blockState, blockState, 3); }