From 7ac1d3ec3551621d7bd5b925bfa4077331e869dc Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 20 Jan 2017 19:03:41 +0100 Subject: [PATCH] Remove redundant death callback --- mods/default/functions.lua | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/mods/default/functions.lua b/mods/default/functions.lua index eb6ddd851..cb44fefc5 100644 --- a/mods/default/functions.lua +++ b/mods/default/functions.lua @@ -1,24 +1,3 @@ --- --- On Die --- ---if minetest.setting_get("keepInventory") == false then - minetest.register_on_dieplayer(function(player) - local inv = player:get_inventory() - local pos = player:getpos() - for i,stack in ipairs(inv:get_list("main")) do - local x = math.random(0, 9)/3 - local z = math.random(0, 9)/3 - pos.x = pos.x + x - pos.z = pos.z + z - minetest.add_item(pos, stack) - stack:clear() - inv:set_stack("main", i, stack) - pos.x = pos.x - x - pos.z = pos.z - z - end - end) ---end - -- -- Lavacooling --