mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-23 21:49:58 +00:00
Limit smelting XP the same way vanilla does
This commit is contained in:
1 parent
b38c51a291
commit
2dbfb160ba
1 file changed
+4
@@ -124,6 +124,10 @@ public class VanillaSmeltingRecipe implements IMachineRecipe {
|
||||
return 0;
|
||||
}
|
||||
float result = FurnaceRecipes.smelting().func_151398_b(output);
|
||||
if (result > 1.0f) {
|
||||
// see net.minecraft.inventory.SlotFurnace.onCrafting(ItemStack)
|
||||
result = 1.0f;
|
||||
}
|
||||
return result * output.stackSize;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user