From f1e782113bb22f310bb7016657c45618c4737c56 Mon Sep 17 00:00:00 2001 From: malte0811 Date: Sat, 9 Mar 2024 13:56:32 +0100 Subject: [PATCH] Fix "active-state" multiblocks initially forming as active --- .../common/blocks/multiblocks/IETemplateMultiblock.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/blusunrize/immersiveengineering/common/blocks/multiblocks/IETemplateMultiblock.java b/src/main/java/blusunrize/immersiveengineering/common/blocks/multiblocks/IETemplateMultiblock.java index 833ab4d362..ee20de47ad 100644 --- a/src/main/java/blusunrize/immersiveengineering/common/blocks/multiblocks/IETemplateMultiblock.java +++ b/src/main/java/blusunrize/immersiveengineering/common/blocks/multiblocks/IETemplateMultiblock.java @@ -29,7 +29,6 @@ import net.minecraft.world.level.block.entity.BlockEntity; import net.minecraft.world.level.block.state.BlockState; import net.minecraft.world.level.chunk.LevelChunk; -import net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate; import net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate.StructureBlockInfo; import javax.annotation.Nonnull; @@ -54,6 +53,8 @@ protected void replaceStructureBlock(StructureBlockInfo info, Level world, Block { BlockState newState = logic.block().get().defaultBlockState(); newState = newState.setValue(IEProperties.MULTIBLOCKSLAVE, !offsetFromMaster.equals(Vec3i.ZERO)); + if(newState.hasProperty(IEProperties.ACTIVE)) + newState = newState.setValue(IEProperties.ACTIVE, false); if(newState.hasProperty(IEProperties.MIRRORED)) newState = newState.setValue(IEProperties.MIRRORED, mirrored); if(newState.hasProperty(IEProperties.FACING_HORIZONTAL))