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
2 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen
Nur Änderungen aus Commit c4296a3781 werden angezeigt - Alle Commits anzeigen

Datei anzeigen

@ -95,7 +95,7 @@ public class Trace { // TODO: Add UUID for file saving and so on!
* Adds the given records and updates potential trace renderings * Adds the given records and updates potential trace renderings
*/ */
protected void addAll(List<TNTPoint> records, Function<Player, PlayerTraceShowData> getter) { protected void addAll(List<TNTPoint> records, Function<Player, PlayerTraceShowData> getter) {
this.records.addAll(records); this.getRecords().addAll(records);
Iterator<Player> keySetIterator = entityServerMap.keySet().iterator(); Iterator<Player> keySetIterator = entityServerMap.keySet().iterator();
while (keySetIterator.hasNext()) { while (keySetIterator.hasNext()) {
Player player = keySetIterator.next(); Player player = keySetIterator.next();
@ -104,7 +104,7 @@ public class Trace { // TODO: Add UUID for file saving and so on!
keySetIterator.remove(); keySetIterator.remove();
continue; continue;
} }
render(getRecords(), entityServerMap.get(player), playerTraceShowData); render(records, entityServerMap.get(player), playerTraceShowData);
} }
} }

Datei anzeigen

@ -131,6 +131,7 @@ public class TraceCommand extends SWCommand {
} }
@Register(value = "delete", description = "TRACE_COMMAND_HELP_DELETE") @Register(value = "delete", description = "TRACE_COMMAND_HELP_DELETE")
@Register(value = "clear")
public void delete(@Validator Player player) { public void delete(@Validator Player player) {
manager.clear(); manager.clear();
BauSystem.MESSAGE.send("TRACE_MESSAGE_DELETE", player); BauSystem.MESSAGE.send("TRACE_MESSAGE_DELETE", player);