- Fixed an error which caused the client to send an erroneus material command to the server.
- Added some debug messages.