diff --git a/components/CellData.tsx b/components/CellData.tsx index 95fc327..364b854 100644 --- a/components/CellData.tsx +++ b/components/CellData.tsx @@ -121,7 +121,6 @@ const CellData: React.FC = ({ selectedCell, counts }) => { {data.plugins_count} -

Loaded Plugins

diff --git a/components/Map.tsx b/components/Map.tsx index d2b137b..c5c9693 100644 --- a/components/Map.tsx +++ b/components/Map.tsx @@ -297,6 +297,7 @@ const Map: React.FC = () => { clearSelectedCell(); } } else if (router.query.plugin && typeof router.query.plugin === "string") { + clearSelectedCell(); clearSelectedCells(); setSidebarOpen(true); if (plugins && plugins.length > 0 && pluginsPending === 0) { diff --git a/components/PluginsList.tsx b/components/PluginsList.tsx index a0d08b4..6b6c4af 100644 --- a/components/PluginsList.tsx +++ b/components/PluginsList.tsx @@ -16,7 +16,11 @@ const PluginsList: React.FC = ({ selectedCell }) => { selectedCell ? state.plugins.plugins.filter((plugin) => plugin.parsed?.cells.some( - (cell) => cell.x === selectedCell.x && cell.y === selectedCell.y + (cell) => + cell.x === selectedCell.x && + cell.y === selectedCell.y && + // TODO: support other worlds + cell.world_form_id === 60 ) ) : state.plugins.plugins @@ -25,6 +29,7 @@ const PluginsList: React.FC = ({ selectedCell }) => { return ( <> + {selectedCell && plugins.length > 0 &&

Loaded Plugins

}
    {plugins.map((plugin) => (