diff --git a/src/main/java/thedarkcolour/exdeorum/blockentity/CompressedSieveBlockEntity.java b/src/main/java/thedarkcolour/exdeorum/blockentity/CompressedSieveBlockEntity.java index 529cc01f..8b80c2dd 100644 --- a/src/main/java/thedarkcolour/exdeorum/blockentity/CompressedSieveBlockEntity.java +++ b/src/main/java/thedarkcolour/exdeorum/blockentity/CompressedSieveBlockEntity.java @@ -21,6 +21,7 @@ package thedarkcolour.exdeorum.blockentity; import net.minecraft.core.BlockPos; import net.minecraft.world.level.block.state.BlockState; import thedarkcolour.exdeorum.blockentity.logic.CompressedSieveLogic; +import thedarkcolour.exdeorum.config.EConfig; import thedarkcolour.exdeorum.registry.EBlockEntities; public class CompressedSieveBlockEntity extends AbstractSieveBlockEntity { @@ -29,4 +30,9 @@ public class CompressedSieveBlockEntity extends AbstractSieveBlockEntity { public CompressedSieveBlockEntity(BlockPos pos, BlockState state) { super(EBlockEntities.COMPRESSED_SIEVE.get(), pos, state, COMPRESSED_SIEVE_INTERVAL, owner -> new CompressedSieveLogic(owner, false)); } + + @Override + protected boolean canUseSimultaneously() { + return EConfig.SERVER.simultaneousCompressedSieveUsage.get(); + } } diff --git a/src/main/java/thedarkcolour/exdeorum/config/EConfig.java b/src/main/java/thedarkcolour/exdeorum/config/EConfig.java index c976b57c..c1a3ba98 100644 --- a/src/main/java/thedarkcolour/exdeorum/config/EConfig.java +++ b/src/main/java/thedarkcolour/exdeorum/config/EConfig.java @@ -125,6 +125,7 @@ public class EConfig { public final IntValue simultaneousSieveUsageRange; public final BooleanValue automatedSieves; public final BooleanValue nerfAutomatedSieves; + public final BooleanValue simultaneousCompressedSieveUsage; public final DoubleValue barrelProgressStep; public final BooleanValue witchWaterDirtGenerator; public final BooleanValue witchWaterNetherrackGenerator; @@ -160,6 +161,9 @@ public class EConfig { this.nerfAutomatedSieves = builder .comment("Whether machines/fake players that interact with the Sieve can sieve in a 3x3 or larger. This option does nothing if automated_sieves is set to false.") .define("nerf_automated_sieves", true); + this.simultaneousCompressedSieveUsage = builder + .comment("Whether players can use multiple compressed sieves in a 3x3 or larger area at once.") + .define("simultaneous_compressed_sieve_usage", false); this.barrelProgressStep = builder .comment("The progress to increment by each tick for barrel composting.") .defineInRange("barrel_progress_step", 0.004, 0.0f, 1.0f);