RealBadAngel
2013-04-20 0992a6a6fc1a5331ee6cea5ce42adb5cc71c8a86
bug fix
2 files modified
4 ■■■■ changed files
item_drop/init.lua 2 ●●● patch | view | raw | blame | history
item_drop/item_entity.lua 2 ●●● patch | view | raw | blame | history
item_drop/init.lua
@@ -13,7 +13,7 @@
                        if obj.timer > time_pick then
                            inv:add_item("main", ItemStack(obj.itemstring))
                            if obj.itemstring ~= "" then
                                minetest.sound_play("item_drop_pickup",gain = 1.0, max_hear_distance = 10)
                                minetest.sound_play("item_drop_pickup",{pos, gain = 1.0, max_hear_distance = 10})
                            end
                            if object:get_luaentity() then 
                                object:get_luaentity().itemstring = ""
item_drop/item_entity.lua
@@ -104,7 +104,7 @@
        
        local name = minetest.env:get_node(p).name
        if name == "default:lava_flowing" or name == "default:lava_source" then
            minetest.sound_play("builtin_item_lava", {pos=self.object:getpos()},gain = 1.0, max_hear_distance = 10)
            minetest.sound_play("builtin_item_lava", {pos=self.object:getpos(),gain = 1.0, max_hear_distance = 10})
            self.object:remove()
            return
        end