support aquiring server props and test dropping them
This commit is contained in:
parent
3e1afb82c8
commit
7852790a1e
9 changed files with 858 additions and 150 deletions
|
|
@ -607,6 +607,20 @@ async fn handle_socket(
|
|||
}
|
||||
}
|
||||
ClientMessage::DropProp { inventory_item_id } => {
|
||||
// Ensure instance exists for this scene (required for loose_props FK)
|
||||
// In this system, channel_id = scene_id
|
||||
if let Err(e) = loose_props::ensure_scene_instance(
|
||||
&mut *recv_conn,
|
||||
channel_id,
|
||||
)
|
||||
.await
|
||||
{
|
||||
tracing::error!(
|
||||
"[WS] Failed to ensure scene instance: {:?}",
|
||||
e
|
||||
);
|
||||
}
|
||||
|
||||
// Get user's current position for random offset
|
||||
let member_info = channel_members::get_channel_member(
|
||||
&mut *recv_conn,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue