mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-01-30 14:55:07 +01:00
Allow deployer to place cart assemblers
This commit is contained in:
parent
b0a84a9bc1
commit
eb075f683b
1 changed files with 5 additions and 1 deletions
|
@ -8,6 +8,8 @@ import java.util.List;
|
||||||
|
|
||||||
import javax.annotation.Nullable;
|
import javax.annotation.Nullable;
|
||||||
|
|
||||||
|
import com.simibubi.create.content.contraptions.components.structureMovement.mounted.CartAssemblerBlockItem;
|
||||||
|
|
||||||
import net.minecraft.block.DoublePlantBlock;
|
import net.minecraft.block.DoublePlantBlock;
|
||||||
|
|
||||||
import net.minecraft.state.properties.DoubleBlockHalf;
|
import net.minecraft.state.properties.DoubleBlockHalf;
|
||||||
|
@ -281,7 +283,9 @@ public class DeployerHandler {
|
||||||
return;
|
return;
|
||||||
if (useItem == DENY)
|
if (useItem == DENY)
|
||||||
return;
|
return;
|
||||||
if (item instanceof BlockItem && !clickedState.isReplaceable(new BlockItemUseContext(itemusecontext)))
|
if (item instanceof BlockItem
|
||||||
|
&& !(item instanceof CartAssemblerBlockItem)
|
||||||
|
&& !clickedState.isReplaceable(new BlockItemUseContext(itemusecontext)))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Reposition fire placement for convenience
|
// Reposition fire placement for convenience
|
||||||
|
|
Loading…
Reference in a new issue