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());
|
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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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)
|
||||||
|
@ -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
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren