Don't cause stack overflow errors for getting UUIDs
Fix existing inventory management code
It works, but empty inventories do not save correctly and this is oddly slow for switching
Minor debug message change