translation complete but not tested
This commit is contained in:
@@ -8,7 +8,7 @@ export async function forceShow(player, form, timeout = Infinity) {
|
||||
while ((system.currentTick - startTick) < timeout) {
|
||||
const response = await form.show(player);
|
||||
if (startTick + 1 === system.currentTick && response.cancelationReason === FormCancelationReason.UserBusy)
|
||||
player.sendMessage({ translate: 'construct.menu.open.closeChat' });
|
||||
player.sendMessage({ translate: 'construct.menu.open.closechat' });
|
||||
if (response.cancelationReason !== FormCancelationReason.UserBusy)
|
||||
return response;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user