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 { 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) 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