mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-10 20:11:35 +01:00
Fix Deployers not using item's useOn method
This commit is contained in:
parent
0bfd98fccd
commit
eece9b6022
1 changed files with 4 additions and 3 deletions
|
@ -300,9 +300,6 @@ public class DeployerHandler {
|
||||||
return;
|
return;
|
||||||
if (useItem == DENY)
|
if (useItem == DENY)
|
||||||
return;
|
return;
|
||||||
if (item instanceof BlockItem && !(item instanceof CartAssemblerBlockItem)
|
|
||||||
&& !clickedState.canBeReplaced(new BlockPlaceContext(itemusecontext)))
|
|
||||||
return;
|
|
||||||
|
|
||||||
// Reposition fire placement for convenience
|
// Reposition fire placement for convenience
|
||||||
if (item == Items.FLINT_AND_STEEL) {
|
if (item == Items.FLINT_AND_STEEL) {
|
||||||
|
@ -324,6 +321,10 @@ public class DeployerHandler {
|
||||||
player.placedTracks = true;
|
player.placedTracks = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (item instanceof BlockItem && !(item instanceof CartAssemblerBlockItem)
|
||||||
|
&& !clickedState.canBeReplaced(new BlockPlaceContext(itemusecontext)))
|
||||||
|
return;
|
||||||
if (item == Items.ENDER_PEARL)
|
if (item == Items.ENDER_PEARL)
|
||||||
return;
|
return;
|
||||||
if (AllItemTags.DEPLOYABLE_DRINK.matches(item))
|
if (AllItemTags.DEPLOYABLE_DRINK.matches(item))
|
||||||
|
|
Loading…
Reference in a new issue