Replaced C-style array instantiation with Java-Style
This commit is contained in:
@@ -336,8 +336,8 @@ public class BC extends BaseModule implements IBC
|
||||
{
|
||||
try
|
||||
{
|
||||
Block blk[] = ItemFacade.getBlocks( facade );
|
||||
int meta[] = ItemFacade.getMetaValues( facade );
|
||||
Block[] blk = ItemFacade.getBlocks( facade );
|
||||
int[] meta = ItemFacade.getMetaValues( facade );
|
||||
if ( blk == null || blk.length < 1 )
|
||||
return null;
|
||||
|
||||
|
||||
@@ -94,9 +94,9 @@ public class FMP implements IIntegrationModule, IPartFactory, IPartConverter, IF
|
||||
this.createAndRegister( AEApi.instance().blocks().blockSkyStone.block(), 2 );
|
||||
this.createAndRegister( AEApi.instance().blocks().blockSkyStone.block(), 3 );
|
||||
|
||||
PartRegistry reg[] = PartRegistry.values();
|
||||
PartRegistry[] reg = PartRegistry.values();
|
||||
|
||||
String data[] = new String[reg.length];
|
||||
String[] data = new String[reg.length];
|
||||
for (int x = 0; x < data.length; x++)
|
||||
data[x] = reg[x].getName();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user