From eece9b602291ee2939ae1397de9fc38191d1783c Mon Sep 17 00:00:00 2001 From: Nova_starter Date: Thu, 3 Aug 2023 03:12:51 -0700 Subject: [PATCH] Fix Deployers not using item's useOn method --- .../create/content/kinetics/deployer/DeployerHandler.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 7343b28b3..152af121a 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 @@ -300,9 +300,6 @@ public class DeployerHandler { return; if (useItem == DENY) return; - if (item instanceof BlockItem && !(item instanceof CartAssemblerBlockItem) - && !clickedState.canBeReplaced(new BlockPlaceContext(itemusecontext))) - return; // Reposition fire placement for convenience if (item == Items.FLINT_AND_STEEL) { @@ -324,6 +321,10 @@ public class DeployerHandler { player.placedTracks = true; return; } + + if (item instanceof BlockItem && !(item instanceof CartAssemblerBlockItem) + && !clickedState.canBeReplaced(new BlockPlaceContext(itemusecontext))) + return; if (item == Items.ENDER_PEARL) return; if (AllItemTags.DEPLOYABLE_DRINK.matches(item))