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
+3 -3
View File
@@ -84,9 +84,9 @@ import appeng.util.Platform;
public class CableBusPart extends JCuboidPart implements JNormalOcclusion, IRedstonePart, AEMultiTile
{
final static Cuboid6 sideTests[] = new Cuboid6[] {
final static Cuboid6[] sideTests = new Cuboid6[] {
new Cuboid6( 6.0 / 16.0, 0, 6.0 / 16.0, 10.0 / 16.0, 6.0 / 16.0, 10.0 / 16.0 ), // DOWN(0, -1, 0),
new Cuboid6( 6.0 / 16.0, 0, 6.0 / 16.0, 10.0 / 16.0, 6.0 / 16.0, 10.0 / 16.0 ), // DOWN(0, -1, 0),
new Cuboid6( 6.0 / 16.0, 10.0 / 16.0, 6.0 / 16.0, 10.0 / 16.0, 1.0, 10.0 / 16.0 ), // UP(0, 1, 0),
@@ -167,7 +167,7 @@ public class CableBusPart extends JCuboidPart implements JNormalOcclusion, IReds
public void readDesc(MCDataInput packet)
{
int len = packet.readInt();
byte data[] = packet.readByteArray( len );
byte[] data = packet.readByteArray( len );
try
{