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