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

Commit 4991d1e

Browse files
committed
Fixes crash bug #16
1 parent 0b160f8 commit 4991d1e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/VectorNetworkProject/TheMix/task/ReSpawnCooldownTask.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public function __construct(Player $player, Position $position)
3838
*/
3939
public function onRun(int $currentTick)
4040
{
41+
if (!$this->player->isOnline()) $this->getHandler()->cancel();
4142
$this->player->setGamemode(Player::SURVIVAL);
4243
$this->player->teleport($this->position);
4344
$this->player->sendMessage(TextFormat::GREEN.'行動可能になりました。');

0 commit comments

Comments
 (0)