mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-29 08:27:03 +01:00
Make deployer check for consumed actions too
This commit is contained in:
parent
dff459a75f
commit
fec329e3d2
1 changed files with 2 additions and 2 deletions
|
@ -277,7 +277,7 @@ public class DeployerHandler {
|
||||||
|
|
||||||
// Use on block
|
// Use on block
|
||||||
if (useBlock != DENY && flag1
|
if (useBlock != DENY && flag1
|
||||||
&& safeOnUse(clickedState, world, clickedPos, player, hand, result) == ActionResultType.SUCCESS)
|
&& safeOnUse(clickedState, world, clickedPos, player, hand, result).isAccepted())
|
||||||
return;
|
return;
|
||||||
if (stack.isEmpty())
|
if (stack.isEmpty())
|
||||||
return;
|
return;
|
||||||
|
@ -302,7 +302,7 @@ public class DeployerHandler {
|
||||||
|
|
||||||
// 'Inert' item use behaviour & block placement
|
// 'Inert' item use behaviour & block placement
|
||||||
ActionResultType onItemUse = stack.onItemUse(itemusecontext);
|
ActionResultType onItemUse = stack.onItemUse(itemusecontext);
|
||||||
if (onItemUse == ActionResultType.SUCCESS)
|
if (onItemUse.isAccepted())
|
||||||
return;
|
return;
|
||||||
if (item == Items.ENDER_PEARL)
|
if (item == Items.ENDER_PEARL)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue