Replaced C-style array instantiation with Java-Style

This commit is contained in:
thatsIch
2015-01-01 21:15:03 +01:00
parent e38293a291
commit 8179259afa
48 changed files with 69 additions and 69 deletions
@@ -57,7 +57,7 @@ public class LayerISidedInventory extends LayerBase implements ISidedInventory
public void notifyNeighbors()
{
// cache of inventory state.
int sideData[][] = null;
int[][] sideData = null;
List<ISidedInventory> inventories = null;
List<InvSot> slots = null;
@@ -99,7 +99,7 @@ public class LayerISidedInventory extends LayerBase implements ISidedInventory
break;
}
int cSidesList[] = sideData[currentSide.ordinal()] = new int[slotCount];
int[] cSidesList = sideData[currentSide.ordinal()] = new int[slotCount];
for (int cSlot = 0; cSlot < slotCount; cSlot++)
{
cSidesList[cSlot] = offsetForLayer;