SteamWar/BauSystem2.0
Archiviert
12
0

Fixed Trace id assignment
Einige Prüfungen sind fehlgeschlagen
SteamWarCI Build failed

Fixed trace recording of source tnt
Dieser Commit ist enthalten in:
D4rkr34lm 2024-03-18 22:40:41 +01:00
Ursprung 45cc3abd0a
Commit 5ec9fbb6e0
3 geänderte Dateien mit 2 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -192,6 +192,7 @@ public class Recorder implements Listener {
trackedTNT.get(region).add((TNTPrimed) event.getEntity());
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")
public void delete(Player player){
manager.clear();
//BauSystem.MESSAGE.send("TRACE_MESSAGE_DELETE_ALL", player);
}
//TODO Manage non exsistent trace
@Register(value = "delete", description = "TRACE_COMMAND_HELP_SHOW")
public void delete(Player player, int id){
manager.remove(id);
//BauSystem.MESSAGE.send("TRACE_MESSAGE_DELETE", player);
}
@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));
traces.put(nextOpenId, trace);
nextOpenId++;
return nextOpenId--;
return nextOpenId;
}
/** Removes the trace with the given id