mirror of
https://github.com/minetest-mods/technic.git
synced 2024-12-22 13:52:31 +01:00
bug fix
This commit is contained in:
parent
5db0041896
commit
0992a6a6fc
@ -13,7 +13,7 @@ minetest.register_globalstep(function(dtime)
|
|||||||
if obj.timer > time_pick then
|
if obj.timer > time_pick then
|
||||||
inv:add_item("main", ItemStack(obj.itemstring))
|
inv:add_item("main", ItemStack(obj.itemstring))
|
||||||
if obj.itemstring ~= "" then
|
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
|
end
|
||||||
if object:get_luaentity() then
|
if object:get_luaentity() then
|
||||||
object:get_luaentity().itemstring = ""
|
object:get_luaentity().itemstring = ""
|
||||||
|
@ -104,7 +104,7 @@ minetest.register_entity(":__builtin:item", {
|
|||||||
|
|
||||||
local name = minetest.env:get_node(p).name
|
local name = minetest.env:get_node(p).name
|
||||||
if name == "default:lava_flowing" or name == "default:lava_source" then
|
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()
|
self.object:remove()
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user