mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-13 05:54:17 +01:00
Merge pull request #5266 from NovaStarter/mc1.18/dev
Fix Deployers not using item's useOn method
This commit is contained in:
commit
a6a3c72538
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user