diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/Recorder.java b/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/Recorder.java index 30f5d0d9..8eab6d0f 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/Recorder.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/Recorder.java @@ -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<>()); } diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/Trace.java b/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/Trace.java index 0028f6ab..92146fe2 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/Trace.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/Trace.java @@ -160,6 +160,11 @@ public class Trace { List 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){