SteamWar/BauSystem2.0
Archiviert
12
0

Trace Refactor #233

Zusammengeführt
YoyoNow hat 121 Commits von TracerGUI nach master 2024-04-21 16:03:26 +02:00 zusammengeführt
Nur Änderungen aus Commit 1cbe614171 werden angezeigt - Alle Commits anzeigen

Datei anzeigen

@ -101,7 +101,7 @@ public class Recorder implements Listener {
*/ */
public void checkForAutoTraceFinish(){ public void checkForAutoTraceFinish(){
for(Region region: autoTraceRegions) 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); stopRecording(region);
autoTraceRegions.remove(region); autoTraceRegions.remove(region);
} }
@ -160,7 +160,7 @@ public class Recorder implements Listener {
List<TNTRecord> history = historyMap.getOrDefault(tntPrimed, new ArrayList<>()); List<TNTRecord> history = historyMap.getOrDefault(tntPrimed, new ArrayList<>());
UUID tntID; UUID tntID;
if(historyMap.size() == 0){ if(history.size() == 0){
historyMap.put(tntPrimed, history); historyMap.put(tntPrimed, history);
tntID = UUID.randomUUID(); tntID = UUID.randomUUID();
} }