From 1dcb2641e0cca8da03e9a01081b3af31a524fc02 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Fri, 10 Dec 2021 16:30:11 +0100 Subject: [PATCH] Update internal stuff Signed-off-by: yoyosource --- .../de/steamwar/bausystem/features/tracer/show/Record.java | 4 ++-- .../bausystem/features/tracer/show/StoredRecords.java | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) 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(); } - }