diff --git a/src/main/java/com/simibubi/create/content/kinetics/deployer/DeployerHandler.java b/src/main/java/com/simibubi/create/content/kinetics/deployer/DeployerHandler.java index 5b5845dd1c..e88dcac791 100644 --- a/src/main/java/com/simibubi/create/content/kinetics/deployer/DeployerHandler.java +++ b/src/main/java/com/simibubi/create/content/kinetics/deployer/DeployerHandler.java @@ -155,14 +155,15 @@ private static void activateInner(DeployerFakePlayer player, Vec3 vec, BlockPos InteractionHand hand = InteractionHand.MAIN_HAND; if (!entities.isEmpty()) { Entity entity = entities.get(world.random.nextInt(entities.size())); + List capturedDrops = new ArrayList<>(); boolean success = false; - entity.captureDrops(); + entity.captureDrops(capturedDrops); // Use on entity if (mode == Mode.USE) { InteractionResult cancelResult = UseEntityCallback.EVENT.invoker().interact(player, world, hand, entity, new EntityHitResult(entity)); if (cancelResult == InteractionResult.FAIL) { - entity.captureDrops(); + entity.captureDrops(null); return; } if (cancelResult == null || cancelResult == InteractionResult.PASS) { @@ -203,7 +204,7 @@ private static void activateInner(DeployerFakePlayer player, Vec3 vec, BlockPos success = true; } - List capturedDrops = entity.captureDrops().stream().toList(); + entity.captureDrops(null); capturedDrops.forEach(e -> player.getInventory() .placeItemBackInInventory(e.getItem())); if (success)