mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-16 10:34:40 +00:00
Fix huge performance drop when simulating fake bursts. Closes #2174
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user