aboutsummaryrefslogtreecommitdiff
path: root/builtin/client/chatcommands.lua
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2021-03-10 17:50:34 +0100
committerElias Fleckenstein <eliasfleckenstein@web.de>2021-03-10 17:50:34 +0100
commit7613d9bfe6121f6b741f6b8196ee6d89ef95d1ae (patch)
treee13987ac73550700d6e1835857526406b7e06996 /builtin/client/chatcommands.lua
parent16696823242ca3b82d932542899e77894238fa2c (diff)
downloaddragonfireclient-7613d9bfe6121f6b741f6b8196ee6d89ef95d1ae.tar.xz
Update .wielded command to output the entire itemstring; add LocalPlayer:get_hotbar_size
Diffstat (limited to 'builtin/client/chatcommands.lua')
-rw-r--r--builtin/client/chatcommands.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/client/chatcommands.lua b/builtin/client/chatcommands.lua
index 0da3dab1b..e947c564f 100644
--- a/builtin/client/chatcommands.lua
+++ b/builtin/client/chatcommands.lua
@@ -69,7 +69,7 @@ core.register_chatcommand("teleport", {
core.register_chatcommand("wielded", {
description = "Print itemstring of wieleded item",
func = function()
- return true, core.localplayer:get_wielded_item():get_name()
+ return true, core.localplayer:get_wielded_item():to_string()
end
})