Replaced C-style array instantiation with Java-Style
This commit is contained in:
@@ -31,11 +31,11 @@ public class InvLayerData
|
||||
private final static int[] nullSides = new int[] {};
|
||||
|
||||
// cache of inventory state.
|
||||
final private int sides[][];
|
||||
final private int[][] sides;
|
||||
final private List<ISidedInventory> inventories;
|
||||
final private List<InvSot> slots;
|
||||
|
||||
public InvLayerData(int a[][], List<ISidedInventory> b, List<InvSot> c) {
|
||||
public InvLayerData( int[][] a, List<ISidedInventory> b, List<InvSot> c) {
|
||||
this.sides = a;
|
||||
this.inventories = b;
|
||||
this.slots = c;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user