From bc42b5a91ed6c7a03adf07377eac61602ea40db6 Mon Sep 17 00:00:00 2001 From: Anuken Date: Fri, 4 Aug 2023 10:59:33 -0400 Subject: [PATCH] Fixed #8893 --- core/assets/bundles/bundle.properties | 2 +- core/src/mindustry/logic/LExecutor.java | 4 ++-- core/src/mindustry/logic/LStatements.java | 14 ++++++++++---- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/core/assets/bundles/bundle.properties b/core/assets/bundles/bundle.properties index e2bd35db05..657833b630 100644 --- a/core/assets/bundles/bundle.properties +++ b/core/assets/bundles/bundle.properties @@ -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. diff --git a/core/src/mindustry/logic/LExecutor.java b/core/src/mindustry/logic/LExecutor.java index 83f5af0bd3..d15f48a827 100644 --- a/core/src/mindustry/logic/LExecutor.java +++ b/core/src/mindustry/logic/LExecutor.java @@ -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; diff --git a/core/src/mindustry/logic/LStatements.java b/core/src/mindustry/logic/LStatements.java index a277e72207..505a4e5aa8 100644 --- a/core/src/mindustry/logic/LStatements.java +++ b/core/src/mindustry/logic/LStatements.java @@ -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){