Updated uCore / Minor server tweak
This commit is contained in:
@@ -26,7 +26,7 @@ allprojects {
|
|||||||
appName = 'Mindustry'
|
appName = 'Mindustry'
|
||||||
gdxVersion = '1.9.8'
|
gdxVersion = '1.9.8'
|
||||||
roboVMVersion = '2.3.0'
|
roboVMVersion = '2.3.0'
|
||||||
uCoreVersion = '9969ed07b1'
|
uCoreVersion = '76dc741b49'
|
||||||
|
|
||||||
getVersionString = {
|
getVersionString = {
|
||||||
String buildVersion = getBuildVersion()
|
String buildVersion = getBuildVersion()
|
||||||
|
|||||||
@@ -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 -> {
|
handler.register("setsector <x> <y>", "Sets the next sector to be played. Does not affect current game.", arg -> {
|
||||||
//TODO
|
|
||||||
try{
|
try{
|
||||||
Settings.putInt("sector_x", Integer.parseInt(arg[0]));
|
Settings.putInt("sector_x", Integer.parseInt(arg[0]));
|
||||||
Settings.putInt("sector_y", Integer.parseInt(arg[1]));
|
Settings.putInt("sector_y", Integer.parseInt(arg[1]));
|
||||||
Settings.save();
|
Settings.save();
|
||||||
|
info("Sector position set.");
|
||||||
}catch(NumberFormatException e){
|
}catch(NumberFormatException e){
|
||||||
err("Invalid coordinates.");
|
err("Invalid coordinates.");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user