mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-01-28 22:05:01 +01:00
fix particle when deploying last food in stack
This commit is contained in:
parent
7a7993deb8
commit
3a8ad11789
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue