mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-09 20:29:06 +07:00
Fixed #8893
This commit is contained in:
parent
5e18e08bdf
commit
bc42b5a91e
@ -2259,7 +2259,7 @@ lst.setflag = Set a global flag that can be read by all processors.
|
||||
lst.getflag = Check if a global flag is set.
|
||||
lst.setprop = Sets a property of a unit or building.
|
||||
lst.effect = Create a particle effect.
|
||||
lst.sync = Sync a variable across the network.\nOnly invoked 10 times a second at most.
|
||||
lst.sync = Sync a variable across the network.\nLimited to 20 times a second per variable.
|
||||
|
||||
logic.nounitbuild = [red]Unit building logic is not allowed here.
|
||||
|
||||
|
@ -1672,8 +1672,8 @@ public class LExecutor{
|
||||
}
|
||||
|
||||
public static class SyncI implements LInstruction{
|
||||
//10 syncs per second
|
||||
static final long syncInterval = 1000 / 10;
|
||||
//20 syncs per second
|
||||
public static long syncInterval = 1000 / 20;
|
||||
|
||||
public int variable;
|
||||
|
||||
|
@ -1207,7 +1207,7 @@ public class LStatements{
|
||||
fields(table, result, str -> result = str);
|
||||
|
||||
table.add(" = spawn ");
|
||||
field(table, type, str -> type = str);
|
||||
field(table, type, str -> type = str).colspan(!LCanvas.useRows() ? 1 : 2);
|
||||
|
||||
row(table);
|
||||
|
||||
@ -1219,7 +1219,9 @@ public class LStatements{
|
||||
|
||||
table.row();
|
||||
|
||||
table.add();
|
||||
if(!LCanvas.useRows()){
|
||||
table.add();
|
||||
}
|
||||
|
||||
table.add("team ");
|
||||
field(table, team, str -> team = str);
|
||||
@ -1869,13 +1871,17 @@ public class LStatements{
|
||||
}));
|
||||
}, Styles.logict, () -> {}).size(40f).padLeft(-1).color(table.color);
|
||||
|
||||
row(table);
|
||||
|
||||
table.add(" of ").self(this::param);
|
||||
|
||||
field(table, of, str -> of = str);
|
||||
field(table, of, str -> of = str).colspan(2);
|
||||
|
||||
row(table);
|
||||
|
||||
table.add(" to ");
|
||||
|
||||
field(table, value, str -> value = str);
|
||||
field(table, value, str -> value = str).colspan(2);
|
||||
}
|
||||
|
||||
private void stype(String text){
|
||||
|
Loading…
Reference in New Issue
Block a user