refactor: 着色器 & fix: 移动报错

This commit is contained in:
AncTe committed 2024-11-01 17:07:41 +08:00
1 parent 7bcd9ebeb2
commit 0989c82a6b
5 files changed
+922 -393

No files matched your search

+7 -2
View File
@@ -307,7 +307,7 @@ export function init() {
core.status.replay.animate = false;
Mota.require('var', 'hook').emit(
'afterOpenDoor',
block.event.id,
block.event.id as AllIdsOf<'animates'>,
x,
y
);
@@ -323,7 +323,12 @@ export function init() {
core.maps._removeBlockFromMap(core.status.floorId, block);
if (!locked) core.unlockControl();
core.status.replay.animate = false;
hook.emit('afterOpenDoor', block.event.id, x, y);
hook.emit(
'afterOpenDoor',
block.event.id as AllIdsOf<'animates'>,
x,
y
);
callback?.();
};