mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-02 13:02:38 +00:00
* Fixes harddels in pinned module code, cleans up a musty pattern that I want to die (#64674) * Please stop typecasting target, noooooooooooooooooo * Fixes harddels in pinned module code The logic for pinned modules was intentionally hanging references to the mob that pinned the action button. I have depression. The pinned_to list also was never fully cleared, but that would have just exasperated the issue. I've converted its use of mobs to refs, and its use of the module var into something better managed (Friendly reminder that actions will persist in your nightmares forever unless they are manually qdel'd, this code wasn't doing that. Also cleaned up how the pinned_to list is managed, hopefully it's a bit more action centered now * Fixes harddels in pinned module code, cleans up a musty pattern that I want to die Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>