From 4cc98d7add7b697ac302a6136bbeb95ef78cec45 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 22 Jul 2012 17:10:58 +0300 Subject: minetest.register_on_player_receive_fields() --- builtin/misc_register.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'builtin/misc_register.lua') diff --git a/builtin/misc_register.lua b/builtin/misc_register.lua index 8d4e61fef..18ef22755 100644 --- a/builtin/misc_register.lua +++ b/builtin/misc_register.lua @@ -299,6 +299,12 @@ local function make_registration() return t, registerfunc end +local function make_registration_reverse() + local t = {} + local registerfunc = function(func) table.insert(t, 1, func) end + return t, registerfunc +end + minetest.registered_on_chat_messages, minetest.register_on_chat_message = make_registration() minetest.registered_globalsteps, minetest.register_globalstep = make_registration() minetest.registered_on_punchnodes, minetest.register_on_punchnode = make_registration() @@ -310,4 +316,5 @@ minetest.registered_on_dieplayers, minetest.register_on_dieplayer = make_registr minetest.registered_on_respawnplayers, minetest.register_on_respawnplayer = make_registration() minetest.registered_on_joinplayers, minetest.register_on_joinplayer = make_registration() minetest.registered_on_leaveplayers, minetest.register_on_leaveplayer = make_registration() +minetest.registered_on_player_receive_fields, minetest.register_on_player_receive_fields = make_registration_reverse() -- cgit v1.2.3