Skip to content

Commit 2cf08a1

Browse files
authored
Fix deploying food missing particles and not returning the correct items (Creators-of-Create#7288)
* fix particle when deploying last food in stack * Bowl foods deployer fix
1 parent e2b65fd commit 2cf08a1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: src/main/java/com/simibubi/create/content/kinetics/deployer/DeployerHandler.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,9 @@ private static void activateInner(DeployerFakePlayer player, Vec3 vec, BlockPos
184184
if (stack.isEdible()) {
185185
FoodProperties foodProperties = item.getFoodProperties(stack, player);
186186
if (playerEntity.canEat(foodProperties.canAlwaysEat())) {
187-
playerEntity.eat(world, stack);
188-
player.spawnedItemEffects = stack.copy();
187+
ItemStack copy = stack.copy();
188+
player.setItemInHand(hand, stack.finishUsingItem(world, playerEntity));
189+
player.spawnedItemEffects = copy;
189190
success = true;
190191
}
191192
}

0 commit comments

Comments
 (0)