Skip to content

Commit

Permalink
Fixed auto feed deleting some non-consumed items when feeding them to…
Browse files Browse the repository at this point in the history
… the player
  • Loading branch information
pedroksl committed Dec 27, 2024
1 parent d0e79fc commit 5553f39
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public static boolean autoFeed(Level level, Player player, ItemStack stack) {
1,
Actionable.MODULATE,
IActionSource.ofPlayer(player));
foodStack.finishUsingItem(level, player);
foodStack = foodStack.finishUsingItem(level, player);
if (!foodStack.isEmpty()) {
storage.getInventory()
.insert(
Expand Down

0 comments on commit 5553f39

Please sign in to comment.