9
0
mirror of https://github.com/Xiao-MoMi/Custom-Fishing.git synced 2026-01-04 15:41:35 +00:00

Update BukkitActionManager.java

This commit is contained in:
XiaoMoMi
2024-07-27 17:14:22 +08:00
parent 1d829a8b86
commit 2da2dd7088

View File

@@ -462,7 +462,7 @@ public class BukkitActionManager implements ActionManager<Player> {
ItemStack more = itemStack.clone();
more.setAmount(perStackSize);
if (toInventory) {
PlayerUtils.giveItem(player, more, itemStack.getAmount());
PlayerUtils.giveItem(player, more, more.getAmount());
} else {
PlayerUtils.dropItem(player, more, true, true, false);
}