Crash fix

This commit is contained in:
Anuken 2023-12-10 21:55:21 -05:00
parent 1eb70404d7
commit eeefdd8054
3 changed files with 8 additions and 3 deletions

View file

@ -214,7 +214,10 @@ public class Units{
}
});
return buildResult;
var result = buildResult;
buildResult = null;
return result;
}
/** Iterates through all buildings in a range. */

View file

@ -183,7 +183,9 @@ abstract class PlayerComp implements UnitController, Entityc, Syncc, Timerc, Dra
if(!unit.isNull()){
clearUnit();
}
lastReadUnit = justSwitchTo = justSwitchFrom = null;
lastReadUnit = Nulls.unit;
justSwitchTo = justSwitchFrom = null;
}
public void team(Team team){

View file

@ -25,4 +25,4 @@ org.gradle.caching=true
#used for slow jitpack builds; TODO see if this actually works
org.gradle.internal.http.socketTimeout=100000
org.gradle.internal.http.connectionTimeout=100000
archash=f1e4bdee85
archash=774bfa97b0