Skip to content

Commit 2a646f2

Browse files
committed
Fixed incorrect behavior for teleport alias /tp.
Signed-off-by: Pavel Erokhin (MairwunNx) <MairwunNx@gmail.com>
1 parent 42f3b70 commit 2a646f2

File tree

2 files changed

+1
-0
lines changed

2 files changed

+1
-0
lines changed

assets/curse/ForDescription.xd

-34.5 KB
Binary file not shown.

src/main/java/com/mairwunnx/projectessentials/core/vanilla/commands/TeleportCommand.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public class TeleportCommand {
3636
public static void register(CommandDispatcher<CommandSource> dispatcher) {
3737
logger.info("Replacing `/teleport` vanilla command");
3838
NativeCommandUtils.removeCommand("teleport");
39+
NativeCommandUtils.removeCommand("tp");
3940

4041
LiteralCommandNode<CommandSource> literalcommandnode = dispatcher.register(Commands.literal("teleport").then(Commands.argument("targets", EntityArgument.entities()).then(Commands.argument("location", Vec3Argument.vec3()).executes((p_198807_0_) -> {
4142
return teleportToPos(p_198807_0_.getSource(), EntityArgument.getEntities(p_198807_0_, "targets"), p_198807_0_.getSource().getWorld(), Vec3Argument.getLocation(p_198807_0_, "location"), null, null);

0 commit comments

Comments
 (0)