mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-29 22:11:10 +01:00
local luaentity
This commit is contained in:
parent
0e5ad8637d
commit
7ed964756e
1 changed files with 3 additions and 2 deletions
|
@ -35,8 +35,9 @@ local function register_drop(liquid, glow, sound, nodes)
|
||||||
self.object:set_acceleration(vector.new(0, -5, 0))
|
self.object:set_acceleration(vector.new(0, -5, 0))
|
||||||
end
|
end
|
||||||
if minetest.get_node(vector.offset(ownpos, 0, -0.1, 0)).name ~= "air" then
|
if minetest.get_node(vector.offset(ownpos, 0, -0.1, 0)).name ~= "air" then
|
||||||
if not self.object:get_luaentity()._dropped then
|
local ent = self.object:get_luaentity()
|
||||||
self.object:get_luaentity()._dropped = true
|
if not ent._dropped then
|
||||||
|
ent._dropped = true
|
||||||
minetest.sound_play({name = "drippingwater_" .. sound .. "drip"}, {pos = ownpos, gain = 0.5, max_hear_distance = 8}, true)
|
minetest.sound_play({name = "drippingwater_" .. sound .. "drip"}, {pos = ownpos, gain = 0.5, max_hear_distance = 8}, true)
|
||||||
end
|
end
|
||||||
if k < 3 then
|
if k < 3 then
|
||||||
|
|
Loading…
Reference in a new issue