mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-13 01:14:30 +08:00
refactor: 着色器 & fix: 移动报错
This commit is contained in:
1 parent
7bcd9ebeb2
commit
0989c82a6b
5 files changed
+922
-393
No files matched your search
@@ -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?.();
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user