Skip to content
This repository was archived by the owner on Feb 8, 2019. It is now read-only.

Commit 13b7d77

Browse files
committed
Fix form
1 parent ba0a894 commit 13b7d77

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/VectorNetworkProject/TheMix/command/defaults/ModeratorCommand.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,7 @@ public static function sendModeratorUI(Player $player): void
7373
public static function sendLevelManagerUI(Player $player): void
7474
{
7575
$form = FormApi::makeListForm(function (Player $player, ?int $data) {
76-
if (FormApi::formCancelled($data)) {
77-
self::sendModeratorUI($player);
78-
}
76+
if (FormApi::formCancelled($data)) return;
7977
switch ($data) {
8078
case 0:
8179
$player->teleport(Server::getInstance()->getDefaultLevel()->getSpawnLocation());

0 commit comments

Comments
 (0)