Code cleanup
This commit is contained in:
parent
0747405385
commit
67bda58fd9
3 changed files with 5 additions and 5 deletions
|
@ -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()) {
|
||||
|
|
|
@ -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)) {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue