Trace Refactor #233
@ -116,6 +116,7 @@ public class Recorder implements Listener {
|
||||
Trace trace = new Trace(region);
|
||||
noExplosionRecorded.add(trace);
|
||||
activeTraces.put(region, trace);
|
||||
recordsToAddMap.put(trace, new ArrayList<>());
|
||||
return manager.add(trace);
|
||||
}
|
||||
|
||||
@ -133,6 +134,7 @@ public class Recorder implements Listener {
|
||||
for(TNTPrimed tnt : trackedTNT.getOrDefault(region, Collections.emptyList()))
|
||||
historyMap.remove(tnt);
|
||||
|
||||
recordsToAddMap.remove(trace);
|
||||
trackedTNT.put(region, new ArrayList<>());
|
||||
}
|
||||
|
||||
|
@ -160,6 +160,11 @@ public class Trace {
|
||||
|
||||
List<ViewFlag> flagList = new ArrayList<>();
|
||||
|
||||
//Manage required flags
|
||||
for(ViewFlag flag: flags)
|
||||
if(flag.required != null)
|
||||
flagList.add(flag.required);
|
||||
|
||||
//Manage inverse flags
|
||||
flagList.addAll(ViewFlag.inverseFlags);
|
||||
for(ViewFlag flag: flags){
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren