Fix MiniGame Error

The owner of the room would get stuck if the visitor left the miniroom by closing the game
This commit is contained in:
Windyboy
2022-09-17 00:23:07 +08:00
parent 388ee5c805
commit 769e21115b

View File

@@ -5551,6 +5551,9 @@ public class Character extends AbstractCharacterObject {
if (game.isOwner(this)) {
game.closeRoom(forceClose);
} else {
if (game.isMatchInProgress()) {
game.minigameMatchOwnerWins(true);
}
game.removeVisitor(forceClose, this);
}
}