diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/show/Record.java b/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/show/Record.java index b7ad90ec..c01ce31d 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/show/Record.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/show/Record.java @@ -61,14 +61,14 @@ public class Record { tnt.clear(); } - public TNTRecord get(int id) { + public TNTRecord get(long id) { for (TNTRecord record : tnt) { if (record.getId() == id) return record; } return null; } - public void remove(int id) { + public void remove(long id) { tnt.removeIf(record -> record.getId() == id); } diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/show/StoredRecords.java b/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/show/StoredRecords.java index de516128..beaf1c1e 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/show/StoredRecords.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/show/StoredRecords.java @@ -40,11 +40,11 @@ public class StoredRecords { records.remove(record); } - public static void remove(int id) { + public static void remove(long id) { records.removeIf(record -> record.getId() == id); } - public static Record get(int id) { + public static Record get(long id) { for (Record record : records) { if (record.getId() == id) return record; } @@ -60,5 +60,4 @@ public class StoredRecords { TraceShowManager.clear(); RecordStateMachine.postClear(); } - }