Possible corner death fix
This commit is contained in:
@@ -25,6 +25,7 @@ public class MinerAI extends AIController{
|
|||||||
|
|
||||||
if(ore != null && !unit.validMine(ore)){
|
if(ore != null && !unit.validMine(ore)){
|
||||||
ore = null;
|
ore = null;
|
||||||
|
unit.mineTile = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(mining){
|
if(mining){
|
||||||
|
|||||||
@@ -127,6 +127,7 @@ public class TechTree{
|
|||||||
});
|
});
|
||||||
|
|
||||||
content.techNode = this;
|
content.techNode = this;
|
||||||
|
content.techNodes.add(this);
|
||||||
all.add(this);
|
all.add(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import arc.graphics.*;
|
|||||||
import arc.graphics.g2d.*;
|
import arc.graphics.g2d.*;
|
||||||
import arc.graphics.g2d.TextureAtlas.*;
|
import arc.graphics.g2d.TextureAtlas.*;
|
||||||
import arc.scene.ui.layout.*;
|
import arc.scene.ui.layout.*;
|
||||||
|
import arc.struct.*;
|
||||||
import arc.util.*;
|
import arc.util.*;
|
||||||
import mindustry.annotations.Annotations.*;
|
import mindustry.annotations.Annotations.*;
|
||||||
import mindustry.content.TechTree.*;
|
import mindustry.content.TechTree.*;
|
||||||
@@ -44,6 +45,8 @@ public abstract class UnlockableContent extends MappableContent{
|
|||||||
public TextureRegion fullIcon;
|
public TextureRegion fullIcon;
|
||||||
/** The tech tree node for this content, if applicable. Null if not part of a tech tree. */
|
/** The tech tree node for this content, if applicable. Null if not part of a tech tree. */
|
||||||
public @Nullable TechNode techNode;
|
public @Nullable TechNode techNode;
|
||||||
|
/** Tech nodes for all trees that this content is part of. */
|
||||||
|
public Seq<TechNode> techNodes = new Seq<>();
|
||||||
/** Unlock state. Loaded from settings. Do not modify outside of the constructor. */
|
/** Unlock state. Loaded from settings. Do not modify outside of the constructor. */
|
||||||
protected boolean unlocked;
|
protected boolean unlocked;
|
||||||
|
|
||||||
|
|||||||
@@ -81,8 +81,8 @@ public class EntityCollisions{
|
|||||||
|
|
||||||
if(tmp.overlaps(r1)){
|
if(tmp.overlaps(r1)){
|
||||||
Vec2 v = Geometry.overlap(r1, tmp, x);
|
Vec2 v = Geometry.overlap(r1, tmp, x);
|
||||||
if(x) r1.x += v.x;
|
r1.x += v.x;
|
||||||
if(!x) r1.y += v.y;
|
r1.y += v.y;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -105,8 +105,9 @@ public class Mods implements Loadable{
|
|||||||
|
|
||||||
Fi dest = modDirectory.child(finalName + ".zip");
|
Fi dest = modDirectory.child(finalName + ".zip");
|
||||||
|
|
||||||
file.copyTo(dest);
|
|
||||||
try{
|
try{
|
||||||
|
file.copyTo(dest);
|
||||||
|
|
||||||
var loaded = loadMod(dest, true, true);
|
var loaded = loadMod(dest, true, true);
|
||||||
mods.add(loaded);
|
mods.add(loaded);
|
||||||
//invalidate ordered mods cache
|
//invalidate ordered mods cache
|
||||||
|
|||||||
@@ -25,4 +25,4 @@ org.gradle.caching=true
|
|||||||
#used for slow jitpack builds; TODO see if this actually works
|
#used for slow jitpack builds; TODO see if this actually works
|
||||||
org.gradle.internal.http.socketTimeout=100000
|
org.gradle.internal.http.socketTimeout=100000
|
||||||
org.gradle.internal.http.connectionTimeout=100000
|
org.gradle.internal.http.connectionTimeout=100000
|
||||||
archash=f0ed7ae5d4
|
archash=e0e7849952
|
||||||
|
|||||||
Reference in New Issue
Block a user