Merge pull request #178 from thatsIch/Redundant
Removed redundant array creations just to match varargs operations
This commit is contained in:
@@ -3,6 +3,7 @@ package appeng.parts.reporting;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
@@ -115,7 +116,7 @@ public class PartConversionMonitor extends PartStorageMonitor
|
||||
if ( newItems != null )
|
||||
{
|
||||
TileEntity te = tile;
|
||||
List<ItemStack> list = Arrays.asList( new ItemStack[] { newItems } );
|
||||
List<ItemStack> list = Arrays.asList( newItems );
|
||||
Platform.spawnDrops( player.worldObj, te.xCoord + side.offsetX, te.yCoord + side.offsetY, te.zCoord + side.offsetZ, list );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user