From 3a8ad11789648ef44eefd6fe412932f0e720b942 Mon Sep 17 00:00:00 2001 From: jetpacker06 <90773155+jetpacker06@users.noreply.github.com> Date: Mon, 13 Jan 2025 18:57:55 -0600 Subject: [PATCH] fix particle when deploying last food in stack --- .../create/content/kinetics/deployer/DeployerHandler.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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..ff20e8124 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())) { + ItemStack copy = stack.copy(); playerEntity.eat(world, stack); - player.spawnedItemEffects = stack.copy(); + player.spawnedItemEffects = copy; success = true; } }