Merge pull request #4718 from Walle123/mc1.18/dev

add brass tunnel speed setting
This commit is contained in:
simibubi 2023-05-10 14:22:54 +02:00 committed by GitHub
commit bd24fead0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 10 deletions

View file

@ -11,6 +11,8 @@ import java.util.Set;
import javax.annotation.Nullable;
import com.simibubi.create.foundation.config.AllConfigs;
import org.apache.commons.lang3.tuple.Pair;
import com.simibubi.create.AllBlocks;
@ -174,7 +176,7 @@ public class BrassTunnelTileEntity extends BeltTunnelTileEntity implements IHave
return;
if (selectionMode.get() != SelectionMode.SYNCHRONIZE || syncedOutputActive) {
distributionProgress = 10;
distributionProgress = AllConfigs.SERVER.logistics.brassTunnelTimer.get();
sendData();
}
return;

View file

@ -10,7 +10,7 @@ public class CLogistics extends ConfigBase {
public final ConfigInt linkRange = i(256, 1, "linkRange", Comments.linkRange);
public final ConfigInt displayLinkRange = i(64, 1, "displayLinkRange", Comments.displayLinkRange);
public final ConfigInt vaultCapacity = i(20, 1, "vaultCapacity", Comments.vaultCapacity);
public final ConfigInt brassTunnelTimer = i(10,1,10, "brassTunnelTimer",Comments.brassTunnelTimer);
@Override
public String getName() {
return "logistics";
@ -28,6 +28,7 @@ public class CLogistics extends ConfigBase {
"The amount of ticks a portable storage interface waits for transfers until letting contraptions move along.";
static String mechanicalArmRange = "Maximum distance in blocks a Mechanical Arm can reach across.";
static String vaultCapacity = "The total amount of stacks a vault can hold per block in size.";
static String brassTunnelTimer = "The amount of ticks a brass tunnel waits between distributions";
}
}