mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-25 02:04:44 +02:00
Hacky workaround for Spigot API bug not showing burntime to the client when burntime was too high
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user