Merge branch 'master' into crater

This commit is contained in:
Patrick 'Quezler' Mounier
2020-01-28 20:06:16 +01:00
4 changed files with 11 additions and 5 deletions
+3 -2
View File
@@ -13,8 +13,9 @@ You'll need to either hire some moderators, or make use of (currently non-existe
Since new players may be exposed to the server list early on, put in a phrase like "Co-op survival" or "PvP" so players know what they're getting into. Yes, this is also displayed in the server mode info text, but having extra info in the name doesn't hurt. Since new players may be exposed to the server list early on, put in a phrase like "Co-op survival" or "PvP" so players know what they're getting into. Yes, this is also displayed in the server mode info text, but having extra info in the name doesn't hurt.
- Make sure players know where to refer to for server support. It should be fairly clear that the server owner is not me, but you. - Make sure players know where to refer to for server support. It should be fairly clear that the server owner is not me, but you.
- Try to be professional in your text; use common sense. - Try to be professional in your text; use common sense.
3. **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. 3. **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.
4. Finally, **submit a pull request** to add your server's IP to the list. 4. **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`).
5. 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.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.json), then add a JSON object with a single key, indicating your server address.
For example, if your server address is `google.com`, you would add a comma after the last entry and insert: For example, if your server address is `google.com`, you would add a comma after the last entry and insert:
```json ```json
+1 -2
View File
@@ -33,8 +33,7 @@ public class Pathfinder implements Runnable{
/** handles task scheduling on the update thread. */ /** handles task scheduling on the update thread. */
private TaskQueue queue = new TaskQueue(); private TaskQueue queue = new TaskQueue();
/** current pathfinding thread */ /** current pathfinding thread */
private @Nullable private @Nullable Thread thread;
Thread thread;
public Pathfinder(){ public Pathfinder(){
Events.on(WorldLoadEvent.class, event -> { Events.on(WorldLoadEvent.class, event -> {
+4 -1
View File
@@ -17,6 +17,10 @@ public class Teams{
/** Active teams. */ /** Active teams. */
private Array<TeamData> active = new Array<>(); private Array<TeamData> active = new Array<>();
public Teams(){
active.add(get(Team.crux));
}
public @Nullable CoreEntity closestEnemyCore(float x, float y, Team team){ public @Nullable CoreEntity closestEnemyCore(float x, float y, Team team){
for(TeamData data : active){ for(TeamData data : active){
if(areEnemies(team, data.team)){ if(areEnemies(team, data.team)){
@@ -85,7 +89,6 @@ public class Teams{
/** Returns whether {@param other} is an enemy of {@param #team}. */ /** Returns whether {@param other} is an enemy of {@param #team}. */
public boolean areEnemies(Team team, Team other){ public boolean areEnemies(Team team, Team other){
//todo what about derelict?
return team != other; return team != other;
} }
+3
View File
@@ -7,5 +7,8 @@
}, },
{ {
"address": "mindustry.ecansol.com:6499" "address": "mindustry.ecansol.com:6499"
},
{
"address": "mindustry.ru"
} }
] ]