Fixed nullpointer in auto trace finish check
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Dieser Commit ist enthalten in:
Ursprung
4620e83a82
Commit
1cbe614171
@ -101,7 +101,7 @@ public class Recorder implements Listener {
|
||||
*/
|
||||
public void checkForAutoTraceFinish(){
|
||||
for(Region region: autoTraceRegions)
|
||||
if(autoTraceRegions.contains(region) && noTntRecordedCounter.get(region) > AUTO_TRACE_STOP_TRESHHOLD){
|
||||
if(autoTraceRegions.contains(region) && noTntRecordedCounter.get(region) != null && noTntRecordedCounter.get(region) > AUTO_TRACE_STOP_TRESHHOLD){
|
||||
stopRecording(region);
|
||||
autoTraceRegions.remove(region);
|
||||
}
|
||||
@ -160,7 +160,7 @@ public class Recorder implements Listener {
|
||||
List<TNTRecord> history = historyMap.getOrDefault(tntPrimed, new ArrayList<>());
|
||||
UUID tntID;
|
||||
|
||||
if(historyMap.size() == 0){
|
||||
if(history.size() == 0){
|
||||
historyMap.put(tntPrimed, history);
|
||||
tntID = UUID.randomUUID();
|
||||
}
|
||||
@ -169,7 +169,7 @@ public class Recorder implements Listener {
|
||||
|
||||
|
||||
TNTRecord record = new TNTRecord(tntID, tntPrimed, tntPrimed.getFuseTicks() == 0, TPSUtils.currentTick.get() - trace.getStartTime(), history);
|
||||
history.add(record);
|
||||
history.add(record);
|
||||
|
||||
trace.add(record);
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren