casual-simulation / casualos

Casual Open Simulation for the Web
https://ab1.bot
MIT License
49 stars 9 forks source link

Setting the `mapPortal` to `null` in `@onInstJoined` doesn't work #452

Closed KallynGowdy closed 2 months ago

KallynGowdy commented 5 months ago

When loading a URL that includes ?mapPortal=home, it is impossible for a user script to prevent the loading of the map portal. If they set mapPortal to null during @onInstJoined, then the mapPortal parameter will be removed from the query, but the portal itself will still load. Ideally, users should be able to prevent the mapPortal from loading simply by setting the mapPortal tag on the configBot to null.