Fix Deployers not using item's useOn method

This commit is contained in:
Nova_starter 2023-08-03 03:12:51 -07:00
parent 0bfd98fccd
commit eece9b6022

View file

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