BloodyMods / ServerStarter

MIT License
99 stars 62 forks source link

Conditional for checking offline status is flipped #75

Open trunksbomb opened 3 months ago

trunksbomb commented 3 months ago

https://github.com/BloodyMods/ServerStarter/blob/d13247e2f278741692bbac41cca8ab1f8790af9a/src/main/kotlin/atm/bloodworkxgaming/serverstarter/ServerStarter.kt#L153-L157

First it checks the internet connection, then it checks if it even matters if there is one.

It should just skip checking for an internet connection if the config checkOffline is false. Changing the order of the two conditionals in that if statement will resolve this.