b90f9ec1ef
The side file kept an entry for a gateway after Horizon created its exit, so removing the exit with /data remove block ... exit_portal, or placing a different gateway there, sent the player to the old exit again. Once the gateway's chunk is loaded, gateway_job moves an entry the side file still holds into the block entity (unless the block entity has an exit of its own) and drops the entry. set_gateway_exit writes only the block entity when the chunk is loaded, and leaves an entry in the side file only when the chunk is already unloaded. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>