Fixed trace recording of source tnt
Dieser Commit ist enthalten in:
Ursprung
45cc3abd0a
Commit
5ec9fbb6e0
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren