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

Datei anzeigen

@ -192,6 +192,7 @@ public class Recorder implements Listener {
trackedTNT.get(region).add((TNTPrimed) event.getEntity()); trackedTNT.get(region).add((TNTPrimed) event.getEntity());
tntSpawnRegion.put((TNTPrimed) event.getEntity(), region); tntSpawnRegion.put((TNTPrimed) event.getEntity(), region);
record((TNTPrimed) event.getEntity(), activeTraces.get(region), Collections.emptyList());
} }
} }

Datei anzeigen

@ -81,14 +81,12 @@ public class TraceCommand extends SWCommand {
@Register(value = "delete", description = "TRACE_COMMAND_HELP_SHOW") @Register(value = "delete", description = "TRACE_COMMAND_HELP_SHOW")
public void delete(Player player){ public void delete(Player player){
manager.clear(); manager.clear();
//BauSystem.MESSAGE.send("TRACE_MESSAGE_DELETE_ALL", player);
} }
//TODO Manage non exsistent trace //TODO Manage non exsistent trace
@Register(value = "delete", description = "TRACE_COMMAND_HELP_SHOW") @Register(value = "delete", description = "TRACE_COMMAND_HELP_SHOW")
public void delete(Player player, int id){ public void delete(Player player, int id){
manager.remove(id); manager.remove(id);
//BauSystem.MESSAGE.send("TRACE_MESSAGE_DELETE", player);
} }
@ClassMapper(value = BundleFilter.class, local = true) @ClassMapper(value = BundleFilter.class, local = true)

Datei anzeigen

@ -63,7 +63,7 @@ public class TraceManager implements Listener {
trace.render(player, viewFlagMap.get(player), bundleFilterMap.get(player)); trace.render(player, viewFlagMap.get(player), bundleFilterMap.get(player));
traces.put(nextOpenId, trace); traces.put(nextOpenId, trace);
nextOpenId++; nextOpenId++;
return nextOpenId--; return nextOpenId;
} }
/** Removes the trace with the given id /** Removes the trace with the given id