summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2012-07-12 12:22:54 +0200
committersnowleo <schneeleo@gmail.com>2012-07-12 12:30:25 +0200
commit210f7fe74979a37bd355f946fe268020dd45d203 (patch)
tree2f6b845500ab58954c84410ccdacd0f5a48b3c2b
parentc3e261d60ac9e406442858856ca1e90bea7e2be0 (diff)
downloadEssentials-210f7fe74979a37bd355f946fe268020dd45d203.tar
Essentials-210f7fe74979a37bd355f946fe268020dd45d203.tar.gz
Essentials-210f7fe74979a37bd355f946fe268020dd45d203.tar.lz
Essentials-210f7fe74979a37bd355f946fe268020dd45d203.tar.xz
Essentials-210f7fe74979a37bd355f946fe268020dd45d203.zip
Keep orientation while teleporting up
-rw-r--r--Essentials/src/net/ess3/commands/Commandtop.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/Essentials/src/net/ess3/commands/Commandtop.java b/Essentials/src/net/ess3/commands/Commandtop.java
index 802226990..c45ca0864 100644
--- a/Essentials/src/net/ess3/commands/Commandtop.java
+++ b/Essentials/src/net/ess3/commands/Commandtop.java
@@ -15,7 +15,7 @@ public class Commandtop extends EssentialsCommand
final int topX = user.getLocation().getBlockX();
final int topZ = user.getLocation().getBlockZ();
final int topY = user.getWorld().getHighestBlockYAt(topX, topZ);
- user.getTeleport().teleport(new Location(user.getWorld(), user.getLocation().getX(), topY + 1, user.getLocation().getZ()), new Trade(commandName, ess), TeleportCause.COMMAND);
+ user.getTeleport().teleport(new Location(user.getWorld(), user.getLocation().getX(), topY + 1, user.getLocation().getZ(), user.getLocation().getYaw(), user.getLocation().getPitch()), new Trade(commandName, ess), TeleportCause.COMMAND);
user.sendMessage(_("teleportTop"));
}
}