mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-01-30 23:05:03 +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()) {
|
if (stack.isEdible()) {
|
||||||
FoodProperties foodProperties = item.getFoodProperties(stack, player);
|
FoodProperties foodProperties = item.getFoodProperties(stack, player);
|
||||||
if (playerEntity.canEat(foodProperties.canAlwaysEat())) {
|
if (playerEntity.canEat(foodProperties.canAlwaysEat())) {
|
||||||
playerEntity.eat(world, stack);
|
ItemStack copy = stack.copy();
|
||||||
player.spawnedItemEffects = stack.copy();
|
player.setItemInHand(hand, stack.finishUsingItem(world, playerEntity));
|
||||||
|
player.spawnedItemEffects = copy;
|
||||||
success = true;
|
success = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue