Fix some crashes

- Better type-safety for sending packets
- getItemInUse is suddenly CLIENT-side only