Prevent null Items?

This commit is contained in:
AlgorithmX2
2014-08-13 00:25:21 -05:00
parent a3091741ff
commit 2d12ffc304
2 changed files with 9 additions and 9 deletions
+2 -4
View File
@@ -7,10 +7,8 @@ import java.io.IOException;
import java.util.concurrent.Future;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraftforge.common.util.ForgeDirection;
import appeng.api.AEApi;
import appeng.api.networking.IGrid;
import appeng.api.networking.IGridHost;
import appeng.api.networking.IGridNode;
@@ -90,8 +88,8 @@ public class PacketCraftRequest extends AppEngPacket
}
}
public PacketCraftRequest(ItemStack stack, int parseInt, boolean shift) throws IOException {
this.slotItem = AEApi.instance().storage().createItemStack( stack );
public PacketCraftRequest(IAEItemStack stack, int parseInt, boolean shift) throws IOException {
this.slotItem = stack;
this.slotItem.setStackSize( parseInt );
this.heldShift = shift;