diff --git a/facade/FacadePart.java b/facade/FacadePart.java index 7349a62d..0a23bb6f 100644 --- a/facade/FacadePart.java +++ b/facade/FacadePart.java @@ -424,9 +424,6 @@ public class FacadePart implements IFacadePart try { int color = ib.getColorFromItemStack( randomItem, 0 ); - float r = (color >> 16 & 0xff) / 255F; - float g = (color >> 8 & 0xff) / 255F; - float b = (color & 0xff) / 255F; GL11.glColor4f( 1.0f, 1.0f, 1.0f, 1.0F ); instance.setInvColor( color ); } diff --git a/spatial/StorageHelper.java b/spatial/StorageHelper.java index 7197b7e4..12813794 100644 --- a/spatial/StorageHelper.java +++ b/spatial/StorageHelper.java @@ -13,7 +13,6 @@ import net.minecraft.util.MathHelper; import net.minecraft.world.Teleporter; import net.minecraft.world.World; import net.minecraft.world.WorldServer; -import net.minecraft.world.chunk.Chunk; import appeng.api.AEApi; import appeng.api.util.WorldCoord; import appeng.block.spatial.BlockMatrixFrame; @@ -174,8 +173,7 @@ public class StorageHelper } // load the chunk! - Chunk myChunk = WorldServer.class.cast( newWorld ).getChunkProvider() - .loadChunk( MathHelper.floor_double( link.x ) >> 4, MathHelper.floor_double( link.z ) >> 4 ); + WorldServer.class.cast( newWorld ).getChunkProvider().loadChunk( MathHelper.floor_double( link.x ) >> 4, MathHelper.floor_double( link.z ) >> 4 ); boolean difDest = newWorld != oldWorld; if ( difDest )