Fix huge performance drop when simulating fake bursts. Closes #2174

This commit is contained in:
Vincent Lee committed 2017-02-19 21:23:49 -06:00
1 parent 14fea3891f
commit bf1b3a3aa9
1 file changed
+4 -3
@@ -297,9 +297,10 @@ public class ItemLens extends ItemMod implements ILensControl, ICompositableLens
@Override
public ItemStack getCompositeLens(ItemStack stack) {
NBTTagCompound cmp = ItemNBTHelper.getCompound(stack, TAG_COMPOSITE_LENS, false);
ItemStack lens = ItemStack.loadItemStackFromNBT(cmp);
return lens;
NBTTagCompound cmp = ItemNBTHelper.getCompound(stack, TAG_COMPOSITE_LENS, true);
if(cmp == null)
return null;
return ItemStack.loadItemStackFromNBT(cmp);
}
@Override