fix particle when deploying last food in stack

This commit is contained in:
jetpacker06 2025-01-13 18:57:55 -06:00
parent 7a7993deb8
commit 3a8ad11789

View file

@ -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;
}
}