mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-04-18 17:48:52 +08:00
fix: 开门后事件
This commit is contained in:
parent
f8831caa0f
commit
3e0311897f
@ -537,12 +537,7 @@ events.prototype.openDoor = function (x, y, needKey, callback) {
|
||||
core.removeBlock(x, y);
|
||||
setTimeout(function () {
|
||||
core.status.replay.animate = false;
|
||||
Mota.require('var', 'hook').emit(
|
||||
'afterOpenDoor',
|
||||
block.event.id,
|
||||
x,
|
||||
y
|
||||
);
|
||||
core.events.afterOpenDoor(block.event.id, x, y);
|
||||
if (callback) callback();
|
||||
}, 1); // +1是为了录像检测系统
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user