Compare commits
No commits in common. "f46e6f01020dd6b1e3b6108d4afa38816102b788" and "c62073f7f88934a65c9968ef7892b29a38ff5038" have entirely different histories.
f46e6f0102
...
c62073f7f8
@ -848,13 +848,8 @@ const KubikonEditor = () => {
|
||||
}
|
||||
s.focusOnSelection?.();
|
||||
} catch (e) {}
|
||||
// Тост-уведомление (showToast будет подключён позже — заглушка,
|
||||
// чтобы не падал eslint no-undef и CI оставался зелёным).
|
||||
try {
|
||||
if (typeof window !== 'undefined' && typeof window.showToast === 'function') {
|
||||
window.showToast(`Механика «${kit.name}» добавлена`);
|
||||
}
|
||||
} catch (e) {}
|
||||
// Тост-уведомление.
|
||||
try { showToast?.(`Механика «${kit.name}» добавлена`); } catch (e) {}
|
||||
}, []);
|
||||
|
||||
const [paletteTab, setPaletteTab] = useState('blocks'); // 'blocks' | 'models' | 'primitives'
|
||||
|
||||
@ -154,6 +154,7 @@ export class FloaterManager {
|
||||
if (slot.isCrit) text = 'POW!';
|
||||
else if (num > 100) text = 'KAPOW!';
|
||||
else if (num > 50) text = 'BAM!';
|
||||
text = text;
|
||||
}
|
||||
if (stackCount > 1) text = baseText + ' ×' + stackCount;
|
||||
|
||||
|
||||
@ -4314,11 +4314,6 @@ 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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user