Fixed a multiplayer class cast exception

Fixed a multiplayer class cast exception when placing global chests.