Added null fix

-Catch rare case where player would change dimension after inventory
update
Removed magic number