From 072856be7ddb64cf3951b41b5b5c22cb307e553e Mon Sep 17 00:00:00 2001 From: Sarah Date: Sun, 6 Dec 2015 23:19:53 +0100 Subject: [PATCH] teleportations. --- .../game/arcade/gametutorial/TutorialPhase.java | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/gametutorial/TutorialPhase.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/gametutorial/TutorialPhase.java index d583f5014..b140b79bc 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/gametutorial/TutorialPhase.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/gametutorial/TutorialPhase.java @@ -74,12 +74,15 @@ public abstract class TutorialPhase @Override public void run() { - for(Player player : _tutorial.getPlayers().keySet()) + if(!_hasEnded && !getTutorial().hasEnded()) { - player.setAllowFlight(true); - player.setFlying(true); - player.teleport(_location); - } + for(Player player : _tutorial.getPlayers().keySet()) + { + player.setAllowFlight(true); + player.setFlying(true); + player.teleport(_location); + } + } } }); try