mirror of
https://github.com/songoda/EpicFurnaces.git
synced 2024-11-28 04:45:12 +01:00
Fixed stacks over 64.
This commit is contained in:
parent
f44064adea
commit
402362c32b
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user