Fixed double smelt not working if furnace was empty

This commit is contained in:
nossr50 2021-03-16 13:16:17 -07:00
parent b181fb4568
commit 444d5edd66
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.1.182 Version 2.1.182
Fixed several errors in de locale (Thanks TheBusyBiscuit & w1tcherrr) Fixed several errors in de locale (Thanks TheBusyBiscuit & w1tcherrr)
Fixed a bug where double smelt never succeeded if the furnace was empty
Version 2.1.181 Version 2.1.181

View File

@ -140,7 +140,7 @@ public class SmeltingManager extends SkillManager {
ItemStack furnaceResult = furnaceInventory.getResult(); ItemStack furnaceResult = furnaceInventory.getResult();
if(furnaceResult == null) if(furnaceResult == null)
return false; return true; //This actually means there is nothing yet in the resulting item slot, which means it should always be okay to double smelt
int resultAmount = furnaceResult.getAmount(); //Amount before double smelt int resultAmount = furnaceResult.getAmount(); //Amount before double smelt
int itemLimit = furnaceResult.getMaxStackSize(); int itemLimit = furnaceResult.getMaxStackSize();