Fix chat message callback execution order

master
luk3yx 2021-02-27 09:06:03 +13:00
parent 597e53d30f
commit 57555de697
1 changed files with 1 additions and 1 deletions

View File

@ -514,7 +514,7 @@ local function get_coords(msg)
end
-- Get global co-ords
table.insert(minetest.registered_on_chat_messages, 1, function(_, msg)
minetest.register_on_chat_message(function(_, msg)
if msg:sub(1, 1) == '/' then return end
local pos = get_coords(msg)
if pos then