summaryrefslogtreecommitdiffstats
path: root/nms-patches/CommandTp.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/CommandTp.patch')
-rw-r--r--nms-patches/CommandTp.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/nms-patches/CommandTp.patch b/nms-patches/CommandTp.patch
index 9704499c..73ec32da 100644
--- a/nms-patches/CommandTp.patch
+++ b/nms-patches/CommandTp.patch
@@ -2,7 +2,7 @@
+++ b/net/minecraft/server/CommandTp.java
@@ -53,17 +53,11 @@
} else {
- Entity entity = b(minecraftserver, icommandlistener, astring[astring.length - 1]);
+ Entity entity = c(minecraftserver, icommandlistener, astring[astring.length - 1]);
- if (entity.world != ((Entity) object).world) {
- throw new CommandException("commands.tp.notSameDimension", new Object[0]);
@@ -28,7 +28,7 @@
entity.stopRiding();
- ((EntityPlayer) entity).playerConnection.a(commandabstract_commandnumber.b(), commandabstract_commandnumber1.b(), commandabstract_commandnumber2.b(), f, f1, enumset);
+ ((EntityPlayer) entity).playerConnection.a(commandabstract_commandnumber.b(), commandabstract_commandnumber1.b(), commandabstract_commandnumber2.b(), f, f1, enumset, org.bukkit.event.player.PlayerTeleportEvent.TeleportCause.COMMAND); // CraftBukkit
- entity.h(f);
+ entity.setHeadRotation(f);
} else {
float f2 = (float) MathHelper.g(commandabstract_commandnumber3.a());
@@ -126,10 +120,17 @@