Rewrite command registration

This commit is contained in:
sfan5
2019-12-19 14:12:45 +01:00
parent 8feaf8a21d
commit 91d02f6f5b
4 changed files with 736 additions and 634 deletions

View File

@ -25,7 +25,7 @@ minetest.register_tool(":worldedit:wand", {
local now = minetest.get_us_time()
if now - (punched_air_time[name] or 0) < 1000 * 1000 then
-- reset markers
minetest.registered_chatcommands["/reset"].func(name, "")
worldedit.registered_commands["reset"].func(name)
end
punched_air_time[name] = now
elseif pointed_thing.type == "object" then