mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-06-09 00:38:00 +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);
|
core.removeBlock(x, y);
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
core.status.replay.animate = false;
|
core.status.replay.animate = false;
|
||||||
Mota.require('var', 'hook').emit(
|
core.events.afterOpenDoor(block.event.id, x, y);
|
||||||
'afterOpenDoor',
|
|
||||||
block.event.id,
|
|
||||||
x,
|
|
||||||
y
|
|
||||||
);
|
|
||||||
if (callback) callback();
|
if (callback) callback();
|
||||||
}, 1); // +1是为了录像检测系统
|
}, 1); // +1是为了录像检测系统
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user