mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-16 13:22:52 +08:00
Improve translate function
Make commands pass ints and floats instead of manually casting them to string first
This commit is contained in:
committed by
Luke H-W
Unverified
parent
4b03770ec1
commit
955004343f
@@ -60,8 +60,7 @@ public final class TeleportCommand implements CommandHandler {
|
||||
CommandHandler.sendMessage(sender, translate(sender, "commands.teleport.exists_error"));
|
||||
} else {
|
||||
CommandHandler.sendMessage(sender, translate(sender, "commands.teleport.success",
|
||||
targetPlayer.getNickname(), Float.toString(x), Float.toString(y),
|
||||
Float.toString(z), Integer.toString(sceneId))
|
||||
targetPlayer.getNickname(), x, y, z, sceneId)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user