diff options
Diffstat (limited to 'autosponge/init.lua')
-rw-r--r-- | autosponge/init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autosponge/init.lua b/autosponge/init.lua index ada014f..a68d4ab 100644 --- a/autosponge/init.lua +++ b/autosponge/init.lua @@ -3,7 +3,7 @@ local etime = 0.0 minetest.register_globalstep(function(dtime) if not minetest.settings:get_bool("autosponge") then return end local player = minetest.localplayer - if not player then end + if not player then return end if player:get_wielded_item():get_name() ~= "mcl_sponges:sponge" then return end etime = etime + dtime if etime >= 0.3 then |