Steps to reproduce:
1) Go to remote view/map
2) Open inventory
3) Pick any building
Results in a crash with the following error:
The mod OSHA Hot Swap (2.0.0) caused a non-recoverable error.
Please report this error to the mod author.
Error while running event osha_hot_swap::on_player_cursor_stack_changed (ID 32)
osha_hot_swap/scripts/functions.lua:167: attempt to index local 'inventory' (a nil value)
stack traceback:
osha_hot_swap/scripts/functions.lua:167: in function 'HS_PlayerHasItem'
osha_hot_swap/scripts/functions.lua:50: in function 'HS_CheckForPreviousItem'
osha_hot_swap/control.lua:134: in function <osha_hot_swap/control.lua:132>
Not causing major issues for me currently, but I hope you can fix this. I absolutely love this mod, and have gotten so used to it that it was painful having to play 2.0 without it until today xD