diff --git a/core/src/mindustry/logic/LogicOp.java b/core/src/mindustry/logic/LogicOp.java index 571e67438b..3181e3b4c3 100644 --- a/core/src/mindustry/logic/LogicOp.java +++ b/core/src/mindustry/logic/LogicOp.java @@ -41,6 +41,7 @@ public enum LogicOp{ log10("log10", Math::log10), floor("floor", Math::floor), ceil("ceil", Math::ceil), + round("round", Math::round), sqrt("sqrt", Math::sqrt), rand("rand", d -> GlobalVars.rand.nextDouble() * d), diff --git a/desktop/src/mindustry/desktop/DesktopLauncher.java b/desktop/src/mindustry/desktop/DesktopLauncher.java index 9e18ce5a54..5fd21d90f1 100644 --- a/desktop/src/mindustry/desktop/DesktopLauncher.java +++ b/desktop/src/mindustry/desktop/DesktopLauncher.java @@ -30,6 +30,8 @@ import static mindustry.Vars.*; public class DesktopLauncher extends ClientLauncher{ public final static long discordID = 610508934456934412L; + public final String[] args; + boolean useDiscord = !OS.hasProp("nodiscord"), loadError = false; Throwable steamError; @@ -72,6 +74,8 @@ public class DesktopLauncher extends ClientLauncher{ } public DesktopLauncher(String[] args){ + this.args = args; + Version.init(); boolean useSteam = Version.modifier.contains("steam"); testMobile = Seq.with(args).contains("-testMobile");