From 37d1acbba1eefbb37c9f74c9a2dd2d798d9d94a0 Mon Sep 17 00:00:00 2001 From: min Date: Sun, 7 Jun 2026 14:59:26 +0300 Subject: [PATCH] =?UTF-8?q?fix(player):=20=D0=BF=D0=BE=D1=80=D1=82=20?= =?UTF-8?q?=E2=80=94=20self.delete=20=D1=81=D0=BD=D0=B8=D0=BC=D0=B0=D0=B5?= =?UTF-8?q?=D1=82=20interact-=D0=BF=D0=BE=D0=B4=D1=81=D0=BA=D0=B0=D0=B7?= =?UTF-8?q?=D0=BA=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 --- src/engine/GameRuntime.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/engine/GameRuntime.js b/src/engine/GameRuntime.js index e969e77..3b966a2 100644 --- a/src/engine/GameRuntime.js +++ b/src/engine/GameRuntime.js @@ -3884,6 +3884,11 @@ export class GameRuntime { const id = t.id ?? t.ref; this.scene3d?.primitiveManager?.removeInstance(id); } + // Снять interact-подсказку удалённого объекта (иначе «E» висит на пустоте). + if (t.kind && (t.ref ?? t.id) != null && Array.isArray(this._interactables)) { + const ref = t.kind + ':' + (t.ref ?? t.id); + this._interactables = this._interactables.filter(it => it.ref !== ref); + } this.scheduleSceneSnapshot(); } catch (e) { // eslint-disable-next-line no-console