fix(bridge): rg.map re-reads the picture rather than printing the last answer
All checks were successful
PR Checks / plugin-checks (pull_request) Successful in -1m35s
All checks were successful
PR Checks / plugin-checks (pull_request) Successful in -1m35s
The walk emptied the Rust+ cache and rg.map still said `companion`: it printed the picture the last map.info had seen. It now re-reads while the world is ready. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY
This commit is contained in:
@@ -9248,7 +9248,10 @@ namespace Oxide.Plugins
|
||||
[ConsoleCommand("rg.map")]
|
||||
private void CmdMap(ConsoleSystem.Arg arg)
|
||||
{
|
||||
MapPicture picture = _mapPicture;
|
||||
// Re-read rather than print the last answer: the cache can empty, or a render land,
|
||||
// between asks, and a console that shows yesterday's source misleads the one person
|
||||
// looking at it.
|
||||
MapPicture picture = _worldReady ? CurrentPicture() : _mapPicture;
|
||||
int cells;
|
||||
float cellSize;
|
||||
GameGrid(out cells, out cellSize);
|
||||
|
||||
Reference in New Issue
Block a user