From d8b8c1d313c29e92b4ef15ad0a1fddd5ec8bc651 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Sat, 22 Aug 2020 14:24:58 +0200 Subject: Added Documentation for Additional API --- clientmods/commands/init.lua | 2 +- clientmods/inventory/invhack.lua | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'clientmods') diff --git a/clientmods/commands/init.lua b/clientmods/commands/init.lua index 71328e9ed..e481e6c34 100644 --- a/clientmods/commands/init.lua +++ b/clientmods/commands/init.lua @@ -8,7 +8,7 @@ minetest.register_chatcommand("say", { minetest.register_chatcommand("teleport", { params = ",,", - description = "Teleport to relative coordinates. " .. (core.anticheat_protection and "Only works for short distances." or ""), + description = "Teleport to relative coordinates.", func = function(param) local success, pos = minetest.parse_relative_pos(param) if success then diff --git a/clientmods/inventory/invhack.lua b/clientmods/inventory/invhack.lua index c19167e4e..eb6f48bf2 100644 --- a/clientmods/inventory/invhack.lua +++ b/clientmods/inventory/invhack.lua @@ -4,9 +4,9 @@ minetest.register_chatcommand("invhack", { "invhack:invhack", "" .. "size[8,7.5]" - .. "list[" .. player .. ";main;0,3.5;8,4;]" - .. "list[" .. player .. ";craft;3,0;3,3;]" - .. "list[" .. player .. ";craftpreview;7,1;1,1;]" + .. "list[player:" .. player .. ";main;0,3.5;8,4;]" + .. "list[player:" .. player .. ";craft;3,0;3,3;]" + .. "list[player:" .. player .. ";craftpreview;7,1;1,1;]" ) end }) -- cgit v1.2.3