algodoogle 61ea80b933 Fix self-targeted RPC breaking host-side item grab/release
request_item_authority and release_item_authority were always sent as
an RPC to peer 1, even when the caller already WAS peer 1 (the host's
own player). Godot rejects rpc_id() targeting your own peer id ("RPC on
yourself is not allowed by selected mode"), so every host-side grab or
release was silently failing to run its server-side half: no denial
check on grab, and — the more damaging part — no
_try_snap_into_station()/_release_from_snap_zones() call on release,
leaving a station's snap zone holding a stale reference once the host
picked something back up. That's what made the host "no longer able to
interact" with an item after a client had handled it.

Split each entry point into a public function that runs the logic
directly when we're already the server, and a private @rpc handler used
only when an actual remote client calls it. force_release_item gets the
same treatment for the symmetric case (server rejecting its own grab
attempt).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-25 20:47:03 +01:00
asd
2026-07-25 19:26:43 +01:00
asd
2026-07-25 19:26:43 +01:00
asd
2026-07-25 19:26:43 +01:00
2026-07-25 18:20:12 +01:00
asd
2026-07-25 19:26:43 +01:00
2026-07-14 12:51:57 +02:00
2026-07-14 12:51:57 +02:00
2026-07-14 12:51:57 +02:00
2026-07-22 15:15:30 +02:00
2026-07-22 15:15:30 +02:00
2026-07-14 12:51:57 +02:00
2026-07-14 12:51:57 +02:00
2026-07-19 11:15:35 +02:00
asd
2026-07-25 19:26:43 +01:00
2026-07-14 12:51:57 +02:00
2026-07-25 18:20:12 +01:00
S
Description
No description provided
1.4 GiB
Languages
GDScript 98.3%
PowerShell 1.5%
GDShader 0.2%