Fix corporea crystal cube crash

This commit is contained in:
Vincent Lee committed 2017-01-09 14:10:11 -06:00
1 parent b76f9d4e8f
commit f892297bf3
1 file changed
+2 -2
@@ -39,7 +39,7 @@ public class TileCorporeaCrystalCube extends TileCorporeaBase implements ICorpor
private static final double LOG_2 = Math.log(2);
ItemStack requestTarget;
ItemStack requestTarget = ItemStack.EMPTY;
int itemCount = 0;
int ticks = 0;
public int compValue = 0;
@@ -120,7 +120,7 @@ public class TileCorporeaCrystalCube extends TileCorporeaBase implements ICorpor
public void writePacketNBT(NBTTagCompound par1nbtTagCompound) {
super.writePacketNBT(par1nbtTagCompound);
NBTTagCompound cmp = new NBTTagCompound();
if(requestTarget != null)
if(!requestTarget.isEmpty())
cmp = requestTarget.writeToNBT(cmp);
par1nbtTagCompound.setTag(TAG_REQUEST_TARGET, cmp);
par1nbtTagCompound.setInteger(TAG_ITEM_COUNT, itemCount);