X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=environment_effects.lua;h=16b074b6205319bb84061145c57d95d58a5d384c;hb=b6cf9e21bdf2e39cc0438276a5db053f6f224459;hp=c98247a43e09c5c3a5416f849206c04847c41038;hpb=5480c0bd35a211f1417ff6c102d7290ca0ce0f1d;p=crafter_client.git diff --git a/environment_effects.lua b/environment_effects.lua index c98247a..16b074b 100644 --- a/environment_effects.lua +++ b/environment_effects.lua @@ -49,9 +49,11 @@ minetest.register_globalstep(function(dtime) end + ------------------------------------------------------ + --the water trickling timer water_trickling_timer = water_trickling_timer + dtime - if water_trickling_timer > 1 then + if water_trickling_timer > 0.4 then water_trickling_timer = 0 local is_water_near = minetest.find_node_near(pos, 3, {"main:waterflow"}) if is_water_near and not water_sound_handle then