mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-01 22:55:06 +01:00
Add TeleportCause.COMMAND for inbuilt /tp
This commit is contained in:
parent
7ea2fbb6eb
commit
4959e46f53
1 changed files with 9 additions and 0 deletions
|
@ -22,6 +22,15 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -107,7 +101,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);
|
||||||
|
} else {
|
||||||
|
float f2 = (float) MathHelper.g(commandabstract_commandnumber3.a());
|
||||||
@@ -126,10 +120,17 @@
|
@@ -126,10 +120,17 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue