From b018063a5c0936cf43c9a30239d8aee26b5102d3 Mon Sep 17 00:00:00 2001 From: Vortetty <33466216+Vortetty@users.noreply.github.com> Date: Tue, 15 Sep 2020 10:25:17 -0700 Subject: [PATCH 1/2] Update servers_be.json Added a 24/7 uptime server im hosting with auto updates (restarts after the updates) --- servers_be.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/servers_be.json b/servers_be.json index 047dfba7e0..28c7f07566 100644 --- a/servers_be.json +++ b/servers_be.json @@ -13,5 +13,8 @@ }, { "address": "mindustry.pl:6666" + }, + { + "address": "md.surrealment.com" } ] From ee08fa8f770ee1560ab8c1e4bc62b4808909473b Mon Sep 17 00:00:00 2001 From: DeltaNedas Date: Thu, 17 Sep 2020 17:46:45 +0100 Subject: [PATCH 2/2] add lua-style integer division with // --- core/src/mindustry/logic/LogicOp.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/mindustry/logic/LogicOp.java b/core/src/mindustry/logic/LogicOp.java index d463e51ee1..b289efc1f2 100644 --- a/core/src/mindustry/logic/LogicOp.java +++ b/core/src/mindustry/logic/LogicOp.java @@ -7,6 +7,7 @@ public enum LogicOp{ sub("-", (a, b) -> a - b), mul("*", (a, b) -> a * b), div("/", (a, b) -> a / b), + idiv("//", (a, b) -> Math.floor(a / b)), mod("%", (a, b) -> a % b), equal("==", (a, b) -> Math.abs(a - b) < 0.000001 ? 1 : 0, (a, b) -> a == b ? 1 : 0), notEqual("not", (a, b) -> Math.abs(a - b) < 0.000001 ? 0 : 1, (a, b) -> a != b ? 1 : 0),