From 6529de911a33d9dbfa6167d337aafb90bbfb38a2 Mon Sep 17 00:00:00 2001 From: Gunther De Wachter Date: Mon, 26 Jun 2017 16:35:50 +0200 Subject: [PATCH] Code aesthetics and typo fixes. --- src/main/java/appeng/container/AEBaseContainer.java | 2 +- src/main/java/appeng/tile/AEBaseTile.java | 2 +- src/main/java/appeng/util/helpers/ItemComparisonHelper.java | 2 +- src/main/java/appeng/worldgen/MeteoritePlacer.java | 4 ++-- src/test/java/appeng/client/render/UVLightmapJsonTest.java | 3 ++- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/main/java/appeng/container/AEBaseContainer.java b/src/main/java/appeng/container/AEBaseContainer.java index 3d5be813..4e77143f 100644 --- a/src/main/java/appeng/container/AEBaseContainer.java +++ b/src/main/java/appeng/container/AEBaseContainer.java @@ -427,7 +427,7 @@ public abstract class AEBaseContainer extends Container } else { - throw new IllegalArgumentException( "Invalid Slot [" + newSlot + "]for AE Container instead of AppEngSlot." ); + throw new IllegalArgumentException( "Invalid Slot [" + newSlot + "] for AE Container instead of AppEngSlot." ); } } diff --git a/src/main/java/appeng/tile/AEBaseTile.java b/src/main/java/appeng/tile/AEBaseTile.java index d0497018..39cfda26 100644 --- a/src/main/java/appeng/tile/AEBaseTile.java +++ b/src/main/java/appeng/tile/AEBaseTile.java @@ -79,7 +79,7 @@ public class AEBaseTile extends TileEntity implements IOrientable, ICommonTile, @Override public boolean shouldRefresh( final World world, final BlockPos pos, final IBlockState oldState, final IBlockState newSate ) { - return newSate.getBlock() != oldState.getBlock(); // state dosn't change tile entities in AE2. + return newSate.getBlock() != oldState.getBlock(); // state doesn't change tile entities in AE2. } public static void registerTileItem( final Class c, final IStackSrc wat ) diff --git a/src/main/java/appeng/util/helpers/ItemComparisonHelper.java b/src/main/java/appeng/util/helpers/ItemComparisonHelper.java index 654cd7c6..fa5cf699 100644 --- a/src/main/java/appeng/util/helpers/ItemComparisonHelper.java +++ b/src/main/java/appeng/util/helpers/ItemComparisonHelper.java @@ -94,7 +94,7 @@ public class ItemComparisonHelper /** * A slightly different method from ItemStack.java to skip the isEmpty() check. This allows you to check for identical empty spots.. */ - public boolean isItemEqual( ItemStack left, ItemStack right) { + public boolean isItemEqual( ItemStack left, ItemStack right ) { return left.getItem() == right.getItem() && left.getItemDamage() == right.getItemDamage(); } diff --git a/src/main/java/appeng/worldgen/MeteoritePlacer.java b/src/main/java/appeng/worldgen/MeteoritePlacer.java index 086fdf06..f097781c 100644 --- a/src/main/java/appeng/worldgen/MeteoritePlacer.java +++ b/src/main/java/appeng/worldgen/MeteoritePlacer.java @@ -511,8 +511,8 @@ public final class MeteoritePlacer } } - final int minBLocks = 200; - if( validBlocks > minBLocks && realValidBlocks > 80 ) + final int minBlocks = 200; + if( validBlocks > minBlocks && realValidBlocks > 80 ) { // we can spawn here! diff --git a/src/test/java/appeng/client/render/UVLightmapJsonTest.java b/src/test/java/appeng/client/render/UVLightmapJsonTest.java index 729763a2..96164415 100644 --- a/src/test/java/appeng/client/render/UVLightmapJsonTest.java +++ b/src/test/java/appeng/client/render/UVLightmapJsonTest.java @@ -35,7 +35,8 @@ public class UVLightmapJsonTest @EventHandler public void preInit( FMLPreInitializationEvent event ) { - GameRegistry.register( uvlblock = new Block( Material.IRON ){ + GameRegistry.register( uvlblock = new Block( Material.IRON ) + { final AxisAlignedBB box = new AxisAlignedBB( 0.25, 0, 7 / 16d, 0.75, 1, 9 / 16d );