Hacky workaround for Spigot API bug not showing burntime to the client when burntime was too high

This commit is contained in:
nossr50
2022-07-23 14:43:24 -07:00
parent eb1393c02c
commit 4db6e03517
2 changed files with 2 additions and 1 deletions

View File

@ -34,7 +34,7 @@ public class SmeltingManager extends SkillManager {
* @param burnTime The initial burn time from the {@link FurnaceBurnEvent}
*/
public int fuelEfficiency(int burnTime) {
return Math.max(1, burnTime * getFuelEfficiencyMultiplier());
return Math.min(Short.MAX_VALUE, Math.max(1, burnTime * getFuelEfficiencyMultiplier()));
}
public int getFuelEfficiencyMultiplier()