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. */ /** 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()){ if(!unit.isNull()){
clearUnit(); clearUnit();
} }
lastReadUnit = justSwitchTo = justSwitchFrom = null;
lastReadUnit = Nulls.unit;
justSwitchTo = justSwitchFrom = null;
} }
public void team(Team team){ 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 #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=f1e4bdee85 archash=774bfa97b0