Make deployer check for consumed actions too

This commit is contained in:
reidbhuntley 2021-06-05 01:00:22 -04:00
parent dff459a75f
commit fec329e3d2

View file

@ -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;