From 2cf08a1231c28bae267688c3a666530f7a0ae4bb Mon Sep 17 00:00:00 2001 From: Cody <90773155+jetpacker06@users.noreply.github.com> Date: Mon, 27 Jan 2025 09:25:06 -0600 Subject: [PATCH] Fix deploying food missing particles and not returning the correct items (#7288) * fix particle when deploying last food in stack * Bowl foods deployer fix --- .../create/content/kinetics/deployer/DeployerHandler.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/simibubi/create/content/kinetics/deployer/DeployerHandler.java b/src/main/java/com/simibubi/create/content/kinetics/deployer/DeployerHandler.java index 0a4b6cd16..8d2cdac14 100644 --- a/src/main/java/com/simibubi/create/content/kinetics/deployer/DeployerHandler.java +++ b/src/main/java/com/simibubi/create/content/kinetics/deployer/DeployerHandler.java @@ -184,8 +184,9 @@ public class DeployerHandler { 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; } }