Summary
Game server crashes when this.room.itemManager is undefined during item pickup.
Affected Code
server-game/src/client.js:653
pickupItem (kind, weaponIdx, id) {
this.room.itemManager.collectItem(kind, id); // CRASH if itemManager is undefined
Vulnerability
If room initialization incomplete or during shutdown.
Impact
- Game server crash on item pickup
- Denial of service
Recommended Fix
this.room.itemManager?.collectItem(kind, id);
References