Fixed crash

master
Elias Fleckenstein 2020-12-13 16:54:25 +01:00
parent 035c7d5843
commit bd2db7e58e
1 changed files with 1 additions and 1 deletions

View File

@ -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