Skip to content

Commit

Permalink
Fix deploying food missing particles and not returning the correct it…
Browse files Browse the repository at this point in the history
…ems (#7288)

* fix particle when deploying last food in stack

* Bowl foods deployer fix
  • Loading branch information
jetpacker06 authored Jan 27, 2025
1 parent e2b65fd commit 2cf08a1
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,9 @@ private static void activateInner(DeployerFakePlayer player, Vec3 vec, BlockPos
if (stack.isEdible()) {
FoodProperties foodProperties = item.getFoodProperties(stack, player);
if (playerEntity.canEat(foodProperties.canAlwaysEat())) {
playerEntity.eat(world, stack);
player.spawnedItemEffects = stack.copy();
ItemStack copy = stack.copy();
player.setItemInHand(hand, stack.finishUsingItem(world, playerEntity));
player.spawnedItemEffects = copy;
success = true;
}
}
Expand Down

0 comments on commit 2cf08a1

Please sign in to comment.