Fixed stacks over 64.

This commit is contained in:
Fernando Pettinelli 2021-01-22 20:35:59 -03:00 committed by Brianna
parent f44064adea
commit 402362c32b

View File

@ -138,7 +138,7 @@ public class Furnace {
BoostData boostData = plugin.getBoostManager().getBoost(placedBy); BoostData boostData = plugin.getBoostManager().getBoost(placedBy);
randomAmount = randomAmount * (boostData == null ? 1 : boostData.getMultiplier()); randomAmount = randomAmount * (boostData == null ? 1 : boostData.getMultiplier());
event.getResult().setAmount(event.getResult().getAmount() + randomAmount); event.getResult().setAmount(Math.min(event.getResult().getAmount() + randomAmount, event.getResult().getMaxStackSize()));
} }
public void upgrade(Player player, CostType type) { public void upgrade(Player player, CostType type) {