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
+1 -1
View File
@@ -120,7 +120,7 @@ public class AEConfig extends Configuration implements IConfigurableObject, ICon
public double spatialPowerExponent = 1.35;
public double spatialPowerMultiplier = 1250.0;
public String grinderOres[] = {
public String[] grinderOres = {
// Vanilla Items
"Obsidian", "Ender", "EnderPearl", "Coal", "Iron", "Gold", "Charcoal", "NetherQuartz",
// Common Mod Ores
@@ -84,7 +84,7 @@ public class ColoredItemDefinition implements AEColoredItemDefinition
@Override
public ItemStack[] allStacks(int stackSize)
{
ItemStack is[] = new ItemStack[this.colors.length];
ItemStack[] is = new ItemStack[this.colors.length];
for (int x = 0; x < is.length; x++)
is[x] = this.colors[x].stack( 1 );
return is;
@@ -86,7 +86,7 @@ public class PacketMEInventoryUpdate extends AppEngPacket
} );
ByteBuf uncompressed = Unpooled.buffer( stream.readableBytes() );
byte tmp[] = new byte[1024];
byte[] tmp = new byte[1024];
while (gzReader.available() != 0)
{
int bytes = gzReader.read( tmp );
@@ -39,7 +39,7 @@ public class PacketPatternSlot extends AppEngPacket
final public IAEItemStack slotItem;
final public IAEItemStack pattern[] = new IAEItemStack[9];
final public IAEItemStack[] pattern = new IAEItemStack[9];
final public boolean shift;