Misc fixes
This commit is contained in:
@@ -79,6 +79,7 @@ public class CommandAI extends AIController{
|
||||
|
||||
if(move){
|
||||
if(unit.type.circleTarget && attackTarget != null){
|
||||
target = attackTarget;
|
||||
circleAttack(80f);
|
||||
}else{
|
||||
moveTo(vecOut,
|
||||
|
||||
@@ -21,6 +21,8 @@ import java.util.*;
|
||||
import static mindustry.Vars.*;
|
||||
|
||||
public class Saves{
|
||||
private static final DateFormat dateFormat = SimpleDateFormat.getDateTimeInstance();
|
||||
|
||||
Seq<SaveSlot> saves = new Seq<>();
|
||||
@Nullable SaveSlot current;
|
||||
private @Nullable SaveSlot lastSectorSave;
|
||||
@@ -268,7 +270,7 @@ public class Saves{
|
||||
}
|
||||
|
||||
public String getDate(){
|
||||
return SimpleDateFormat.getDateTimeInstance().format(new Date(meta.timestamp));
|
||||
return dateFormat.format(new Date(meta.timestamp));
|
||||
}
|
||||
|
||||
public Map getMap(){
|
||||
|
||||
@@ -44,7 +44,7 @@ public class ModsDialog extends BaseDialog{
|
||||
|
||||
private BaseDialog browser;
|
||||
private Table browserTable;
|
||||
private float scoll = 0f;
|
||||
private float scroll = 0f;
|
||||
|
||||
public ModsDialog(){
|
||||
super("@mods");
|
||||
@@ -320,7 +320,7 @@ public class ModsDialog extends BaseDialog{
|
||||
cont.pane(table1 -> {
|
||||
pane[0] = table1.margin(10f).top();
|
||||
rebuild.get("");
|
||||
}).scrollX(false).update(s -> scoll = s.getScrollY()).get().setScrollYForce(scoll);
|
||||
}).scrollX(false).update(s -> scroll = s.getScrollY()).get().setScrollYForce(scroll);
|
||||
}else{
|
||||
cont.table(Styles.black6, t -> t.add("@mods.none")).height(80f);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user