Updated uCore / Minor server tweak

This commit is contained in:
Anuken 2018-08-15 17:46:33 -04:00
parent d4d9d59fe4
commit 36c01fde94
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ allprojects {
appName = 'Mindustry'
gdxVersion = '1.9.8'
roboVMVersion = '2.3.0'
uCoreVersion = '9969ed07b1'
uCoreVersion = '76dc741b49'
getVersionString = {
String buildVersion = getBuildVersion()

View File

@ -270,11 +270,11 @@ public class ServerControl extends Module{
});
handler.register("setsector <x> <y>", "Sets the next sector to be played. Does not affect current game.", arg -> {
//TODO
try{
Settings.putInt("sector_x", Integer.parseInt(arg[0]));
Settings.putInt("sector_y", Integer.parseInt(arg[1]));
Settings.save();
info("Sector position set.");
}catch(NumberFormatException e){
err("Invalid coordinates.");
}