diff --git a/dependencies.gradle b/dependencies.gradle index c0d3688ff..ec0ae1c92 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -82,6 +82,9 @@ dependencies { //Uncomment if you need to test chunkloading and warps/homes //runtimeOnlyNonPublishable('com.github.GTNewHorizons:ServerUtilities:2.2.32:dev') + + //runtimeOnlyNonPublishable('com.github.GTNewHorizons:Backhand:1.8.10:dev') + //runtimeOnlyNonPublishable('com.github.GTNewHorizons:ForgeMultipart:1.7.10:dev') {transitive = false} } // deps may transitively add Baubles, so we replace it diff --git a/src/main/java/appeng/parts/PartPlacement.java b/src/main/java/appeng/parts/PartPlacement.java index ab433de55..98617bb95 100644 --- a/src/main/java/appeng/parts/PartPlacement.java +++ b/src/main/java/appeng/parts/PartPlacement.java @@ -303,10 +303,21 @@ public class PartPlacement { final Block blkID = world.getBlock(te_x, te_y, te_z); tile = world.getTileEntity(te_x, te_y, te_z); - if (tile != null && IntegrationRegistry.INSTANCE.isEnabled(IntegrationType.FMP)) { + host = null; + if (tile instanceof IPartHost) { + host = (IPartHost) tile; + } + + if (host == null && tile != null && IntegrationRegistry.INSTANCE.isEnabled(IntegrationType.FMP)) { host = ((IFMP) IntegrationRegistry.INSTANCE.getInstance(IntegrationType.FMP)).getOrCreateHost(tile); } + if (host == null && tile != null + && IntegrationRegistry.INSTANCE.isEnabled(IntegrationType.ImmibisMicroblocks)) { + host = ((IImmibisMicroblocks) IntegrationRegistry.INSTANCE + .getInstance(IntegrationType.ImmibisMicroblocks)).getOrCreateHost(player, face, tile); + } + if ((blkID == null || blkID.isReplaceable(world, te_x, te_y, te_z) || host != null) && side != ForgeDirection.UNKNOWN) { return place(