From 307943c098b99bf215675df0bce96832b0cef194 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sat, 13 May 2023 02:41:04 -0400 Subject: [PATCH 1/3] Update SERVERLIST.md --- SERVERLIST.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SERVERLIST.md b/SERVERLIST.md index b3dbebe0ca..2afe0b887e 100644 --- a/SERVERLIST.md +++ b/SERVERLIST.md @@ -1,7 +1,7 @@ ### Adding a server to the list Mindustry now has a public list of servers that everyone can see and connect to. -This is done by letting clients `GET` a [JSON list of servers](https://github.com/Anuken/Mindustry/blob/master/servers_v6.json) in this repository. +This is done by letting clients `GET` a [JSON list of servers](https://github.com/Anuken/Mindustry/blob/master/servers_v7.json) in this repository. You may want to add your server to this list. The steps for getting this done are as follows: @@ -18,7 +18,7 @@ You'll need to either hire some moderators, or make use of (currently non-existe 4. **Get some good maps.** *(optional, but highly recommended)*. Add some maps to your server and set the map rotation to custom-only. You can get maps from the Steam workshop by subscribing and exporting them; using the `#maps` channel on Discord is also an option. 5. **Check your server configuration.** *(optional)* I would recommend adding a message rate limit of 1 second (`config messageRateLimit 1`), and disabling connect/disconnect messages to reduce spam (`config showConnectMessages false`). 6. Finally, **submit a pull request** to add your server's IP to the list. -This should be fairly straightforward: Press the edit button on the [server file](https://github.com/Anuken/Mindustry/blob/master/servers_v6.json), then add a JSON object with a single key, indicating your server address. +This should be fairly straightforward: Press the edit button on the [server file](https://github.com/Anuken/Mindustry/blob/master/servers_v7.json), then add a JSON object with a single key, indicating your server address. For example, if your server address is `example.com:6000`, you would add a comma after the last entry and insert: ```json { From b40615d9e6dff2afe89506861780399782c457f6 Mon Sep 17 00:00:00 2001 From: buthed010203 Date: Sat, 13 May 2023 09:48:32 -0400 Subject: [PATCH 2/3] Fix crash (#8599) --- core/src/mindustry/input/InputHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/input/InputHandler.java b/core/src/mindustry/input/InputHandler.java index ba33d0cef2..8d5eab1901 100644 --- a/core/src/mindustry/input/InputHandler.java +++ b/core/src/mindustry/input/InputHandler.java @@ -469,7 +469,7 @@ public abstract class InputHandler implements InputProcessor, GestureListener{ build.updateProximity(); build.noSleep(); Fx.rotateBlock.at(build.x, build.y, build.block.size); - Events.fire(new BuildRotateEvent(build, player.unit(), previous)); + Events.fire(new BuildRotateEvent(build, player == null ? null : player.unit(), previous)); } @Remote(targets = Loc.both, called = Loc.both, forward = true) From 5ec0e9dc9f66e6a5eb84326f7288430cbe251a87 Mon Sep 17 00:00:00 2001 From: BalaM314 <71201189+BalaM314@users.noreply.github.com> Date: Sat, 13 May 2023 19:23:47 +0530 Subject: [PATCH 3/3] Use shouldExplode, explosionMinWarmup in generators (#8600) --- core/src/mindustry/world/blocks/power/ImpactReactor.java | 8 +------- core/src/mindustry/world/blocks/power/NuclearReactor.java | 6 ++---- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/core/src/mindustry/world/blocks/power/ImpactReactor.java b/core/src/mindustry/world/blocks/power/ImpactReactor.java index e0336abb53..136cf66b46 100644 --- a/core/src/mindustry/world/blocks/power/ImpactReactor.java +++ b/core/src/mindustry/world/blocks/power/ImpactReactor.java @@ -36,6 +36,7 @@ public class ImpactReactor extends PowerGenerator{ explosionShake = 6f; explosionShakeDuration = 16f; explosionDamage = 1900 * 4; + explosionMinWarmup = 0.3f; explodeEffect = Fx.impactReactorExplosion; explodeSound = Sounds.explosionbig; } @@ -110,13 +111,6 @@ public class ImpactReactor extends PowerGenerator{ return super.sense(sensor); } - @Override - public void createExplosion(){ - if(warmup >= 0.3f){ - super.createExplosion(); - } - } - @Override public void write(Writes write){ super.write(write); diff --git a/core/src/mindustry/world/blocks/power/NuclearReactor.java b/core/src/mindustry/world/blocks/power/NuclearReactor.java index 63b4c90d57..8e28d5b331 100644 --- a/core/src/mindustry/world/blocks/power/NuclearReactor.java +++ b/core/src/mindustry/world/blocks/power/NuclearReactor.java @@ -128,10 +128,8 @@ public class NuclearReactor extends PowerGenerator{ } @Override - public void createExplosion(){ - if(items.get(fuelItem) >= 5 || heat >= 0.5f){ - super.createExplosion(); - } + public boolean shouldExplode(){ + return super.shouldExplode() && (items.get(fuelItem) >= 5 || heat >= 0.5f); } @Override