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

@ -1,4 +1,5 @@
Version 2.1.215
Added hacky workaround for Spigot API bug that resulted in burnTimes not showing burning animation to the client
Level up broadcasts from level milestones will now be visible to the player who achieved them
Fixed a bug where hovering over skill descriptions did not display anything (thanks Greymagic27)
Added Dripstone to experience.yml (thanks Greymagic27)

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()