mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-01-30 14:55:07 +01:00
Fix deploying food missing particles and not returning the correct items (#7288)
* fix particle when deploying last food in stack * Bowl foods deployer fix
This commit is contained in:
parent
e2b65fd53c
commit
2cf08a1231
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue