From fec329e3d2dac218efa93a550ca28f075cf32902 Mon Sep 17 00:00:00 2001 From: reidbhuntley Date: Sat, 5 Jun 2021 01:00:22 -0400 Subject: [PATCH] Make deployer check for consumed actions too --- .../contraptions/components/deployer/DeployerHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/simibubi/create/content/contraptions/components/deployer/DeployerHandler.java b/src/main/java/com/simibubi/create/content/contraptions/components/deployer/DeployerHandler.java index 6125d3150..620b6b0ec 100644 --- a/src/main/java/com/simibubi/create/content/contraptions/components/deployer/DeployerHandler.java +++ b/src/main/java/com/simibubi/create/content/contraptions/components/deployer/DeployerHandler.java @@ -277,7 +277,7 @@ public class DeployerHandler { // Use on block if (useBlock != DENY && flag1 - && safeOnUse(clickedState, world, clickedPos, player, hand, result) == ActionResultType.SUCCESS) + && safeOnUse(clickedState, world, clickedPos, player, hand, result).isAccepted()) return; if (stack.isEmpty()) return; @@ -302,7 +302,7 @@ public class DeployerHandler { // 'Inert' item use behaviour & block placement ActionResultType onItemUse = stack.onItemUse(itemusecontext); - if (onItemUse == ActionResultType.SUCCESS) + if (onItemUse.isAccepted()) return; if (item == Items.ENDER_PEARL) return;