From b1bcb5583815e9af2cf852ea955c28077461e1ec Mon Sep 17 00:00:00 2001 From: Talrey Date: Thu, 19 Aug 2021 23:39:32 -0700 Subject: [PATCH] okay now it works for real --- .../components/deployer/DeployerMovingInteraction.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/simibubi/create/content/contraptions/components/deployer/DeployerMovingInteraction.java b/src/main/java/com/simibubi/create/content/contraptions/components/deployer/DeployerMovingInteraction.java index 1fceefddb..4c170fbc5 100644 --- a/src/main/java/com/simibubi/create/content/contraptions/components/deployer/DeployerMovingInteraction.java +++ b/src/main/java/com/simibubi/create/content/contraptions/components/deployer/DeployerMovingInteraction.java @@ -57,6 +57,8 @@ public class DeployerMovingInteraction extends MovingInteractionBehaviour { if (ctx.data.contains("HeldItem")) { player.setItemInHand(activeHand, ItemStack.of(ctx.data.getCompound("HeldItem"))); fake.setItemInHand(Hand.MAIN_HAND, heldStack); + ctx.tileData.put("HeldItem", heldStack.serializeNBT()); + ctx.data.put("HeldItem", heldStack.serializeNBT()); } ctx.tileData.remove("Inventory"); ctx.temporaryData = fake;