diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 4cc2f6d88f..5bb8637f56 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -17,8 +17,10 @@ jobs: java-version: 17 - name: Setup Gradle uses: gradle/gradle-build-action@v2 + - name: Run unit tests + run: ./gradlew clean cleanTest test --stacktrace - name: Run unit tests and build JAR - run: ./gradlew test desktop:dist + run: ./gradlew desktop:dist - name: Upload desktop JAR for testing uses: actions/upload-artifact@v2 with: diff --git a/core/src/mindustry/game/Team.java b/core/src/mindustry/game/Team.java index afd32eb95e..affcbe525c 100644 --- a/core/src/mindustry/game/Team.java +++ b/core/src/mindustry/game/Team.java @@ -31,7 +31,7 @@ public class Team implements Comparable{ derelict = new Team(0, "derelict", Color.valueOf("4d4e58")), sharded = new Team(1, "sharded", Pal.accent.cpy(), Color.valueOf("ffd37f"), Color.valueOf("eab678"), Color.valueOf("d4816b")), crux = new Team(2, "crux", Color.valueOf("f25555"), Color.valueOf("fc8e6c"), Color.valueOf("f25555"), Color.valueOf("a04553")), - malis = new Team(3, "malis", Color.valueOf("a27ce5"), Color.valueOf("c195fb"), Color.valueOf("665c9f"), Color.valueOf("484988")), + malis = new Team(3, "malis", Color.valueOf("a27ce5"), Color.valueOf("c7a4f5"), Color.valueOf("896fd6"), Color.valueOf("504cba")), //TODO temporarily no palettes for these teams. green = new Team(4, "green", Color.valueOf("54d67d")),//Color.valueOf("96f58c"), Color.valueOf("54d67d"), Color.valueOf("28785c")), diff --git a/core/src/mindustry/logic/LExecutor.java b/core/src/mindustry/logic/LExecutor.java index 44e03ef12c..3b67f5a958 100644 --- a/core/src/mindustry/logic/LExecutor.java +++ b/core/src/mindustry/logic/LExecutor.java @@ -2049,6 +2049,11 @@ public class LExecutor{ state.markers.add(id, marker); } + @Remote(called = Loc.server, variants = Variant.both, unreliable = true) + public static void removeMarker(int id){ + state.markers.remove(id); + } + @Remote(called = Loc.server, variants = Variant.both, unreliable = true) public static void updateMarker(int id, LMarkerControl control, double p1, double p2, double p3){ var marker = state.markers.get(id); diff --git a/core/src/mindustry/world/Block.java b/core/src/mindustry/world/Block.java index 31d98e1efc..05f064cbaf 100644 --- a/core/src/mindustry/world/Block.java +++ b/core/src/mindustry/world/Block.java @@ -382,7 +382,7 @@ public class Block extends UnlockableContent implements Senseable{ /** Dump timer ID.*/ protected final int timerDump = timers++; /** How often to try dumping items in ticks, e.g. 5 = 12 times/sec*/ - protected final int dumpTime = 5; + public int dumpTime = 5; public Block(String name){ super(name); diff --git a/servers_v7.json b/servers_v7.json index 54ce1c7466..4e5c27d47b 100644 --- a/servers_v7.json +++ b/servers_v7.json @@ -157,7 +157,7 @@ }, { "name": "Sakura", - "address": ["160.16.207.141:20527", "160.16.207.141:21527", "160.16.207.141:22527", "160.16.207.141:23527", "160.16.207.141:24527", "160.16.207.141:25527", "160.16.207.141:26527", "160.16.207.141:27527", "160.16.207.141:28527", "160.16.207.141:29527"] + "address": ["160.16.207.141:20527", "160.16.207.141:21527", "160.16.207.141:22527", "160.16.207.141:23527", "160.16.207.141:24527", "160.16.207.141:25527", "160.16.207.141:26527", "160.16.207.141:27527", "160.16.207.141:28527", "160.16.207.141:29527", "162.43.36.78:20527", "162.43.36.78:21527", "162.43.36.78:22527", "162.43.36.78:23527", "162.43.36.78:24527", "162.43.36.78:25527", "162.43.36.78:26527", "162.43.36.78:27527", "162.43.36.78:28527", "162.43.36.78:29527", "sakura-mindustry.jp:20527"] }, { "name": "|RussianServers|[]", @@ -222,7 +222,7 @@ }, { "name": "MeowIsland", - "address": ["nexus.minecraft.rent:25598", "nexus.minecraft.rent:25596", "jupiter.minecraft.rent:25651"] + "address": ["nexus.minecraft.rent:25598", "nexus.minecraft.rent:25596", "jupiter.minecraft.rent:25651", "orion.minecraft.rent:25573"] }, { "name": "3MIDustry", @@ -279,5 +279,9 @@ { "name": "MineCore", "address": ["194.247.42.11:27792", "194.247.42.11:27977", "194.247.42.61:27989", "194.247.42.181:28514"] + }, + { + "name": "hubVn", + "address": ["de-free-01.hosts.optikservers.com:32362"] } ]