"/gate setinventory" bugfixes and error checking
te