SteamWar/BauSystem2.0
Archiviert
12
0

Fix performance stuff
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
yoyosource 2024-04-12 17:18:39 +02:00
Ursprung 31e0a0172f
Commit c4296a3781
2 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen

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);