Skip to content
This repository was archived by the owner on Feb 12, 2026. It is now read-only.

Commit 221a676

Browse files
committed
FC: reliableSync
1 parent 2646fbe commit 221a676

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

core/src/mindustry/net/Net.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ public void send(Object object, boolean reliable){
231231
con.send(object, reliable);
232232
}
233233
}else{
234+
reliable |= LogicExt.reliableSync;
234235
provider.sendClient(object, reliable);
235236
}
236237
}

core/src/mindustryX/features/LogicExt.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ public class LogicExt{
1111
public static boolean allUnlocked = false;
1212
public static boolean terrainSchematic = false;
1313
public static boolean invertMapClick = false;
14+
public static boolean reliableSync = false;
1415

1516
public static void init(){
1617
Events.run(Trigger.update, () -> {
@@ -24,6 +25,7 @@ public static void init(){
2425
allUnlocked = Core.settings.getBool("allUnlocked");
2526
terrainSchematic = Core.settings.getBool("terrainSchematic");
2627
invertMapClick = Core.settings.getBool("invertMapClick");
28+
reliableSync = Core.settings.getBool("reliableSync");
2729
});
2830
}
2931
}

core/src/mindustryX/features/Settings.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ public static void addSettings(){
108108
});
109109
});
110110
c.sliderPref("limitdst", 10, 0, 100, 1, s -> s + "格");
111+
c.checkPref("reliableSync", false);
111112
}));
112113
ArcOld.init(categories);
113114
Events.on(ClientLoadEvent.class, e -> {

0 commit comments

Comments
 (0)