calculatorInventory = null;
}
updateContent();
}
void updateItemFromGui() {
<BUG>ItemStack stack = mc.thePlayer.inventory.getCurrentItem();
if (stack != null && stack.getItem() == JustEnoughCalculation.itemCalculator) {

NBTTagCompound tag = stack.getSubCompound(keyRecipe, true);
</BUG>
tag.setString(keyAmount, textFieldAmount.getText());

calculatorInventory = null;
}
updateContent();
}
void updateItemFromGui() {
Singleton<ItemStack> calc = new Singleton<>(null);
calc.predicate = stack -> stack.getItem() == JustEnoughCalculation.itemCalculator;
calc.push(mc.thePlayer.inventory.getCurrentItem());
calc.push(mc.thePlayer.inventory.offHandInventory[0]);
if (calc.value != null) {
NBTTagCompound tag = calc.value.getSubCompound(keyRecipe, true);
tag.setString(keyAmount, textFieldAmount.getText());
