add the ability to make props non-droppable

This commit is contained in:
Evan Carroll 2026-01-13 17:46:56 -06:00
parent ea3b444d71
commit 845d64c981
5 changed files with 82 additions and 14 deletions

View file

@ -285,6 +285,9 @@ async fn handle_socket(
// needs user_id match anyway)
drop(conn);
// Clone pool for use in the receive task (needed for multi-query operations)
let recv_pool = pool.clone();
// Spawn task to handle incoming messages from client
let recv_task = tokio::spawn(async move {
while let Some(Ok(msg)) = receiver.next().await {
@ -401,7 +404,7 @@ async fn handle_socket(
let pos_y = member.position_y + offset_y;
match loose_props::drop_prop_to_canvas(
&mut *recv_conn,
&recv_pool,
inventory_item_id,
user_id,
channel_id,