From 975fb7e9a70c6ce35929fdaed11f00fa8060ab89 Mon Sep 17 00:00:00 2001 From: iqualfragile Date: Thu, 13 Dec 2012 18:54:26 +0100 Subject: [PATCH] removed the item_drop-funcitonaltiy left item_pick up --- init.lua | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/init.lua b/init.lua index 2d51be0..76880f2 100644 --- a/init.lua +++ b/init.lua @@ -58,41 +58,6 @@ minetest.register_globalstep(function(dtime) end end) -function minetest.handle_node_drops(pos, drops, digger) - for _,item in ipairs(drops) do - local count, name - if type(item) == "string" then - count = 1 - name = item - else - count = item:get_count() - name = item:get_name() - end - for i=1,count do - local obj = minetest.env:add_item(pos, name) - if obj ~= nil then - obj:get_luaentity().collect = true - local x = math.random(1, 5) - if math.random(1,2) == 1 then - x = -x - end - local z = math.random(1, 5) - if math.random(1,2) == 1 then - z = -z - end - obj:setvelocity({x=1/x, y=obj:getvelocity().y, z=1/z}) - - -- FIXME this doesnt work for deactiveted objects - if minetest.setting_get("remove_items") and tonumber(minetest.setting_get("remove_items")) then - minetest.after(tonumber(minetest.setting_get("remove_items")), function(obj) - obj:remove() - end, obj) - end - end - end - end -end - if minetest.setting_get("log_mods") then minetest.log("action", "item_drop loaded") end