diff --git a/builtin/client/wasplib.lua b/builtin/client/wasplib.lua index 4440de5b1..090ec2b86 100644 --- a/builtin/client/wasplib.lua +++ b/builtin/client/wasplib.lua @@ -125,6 +125,7 @@ end minetest.register_globalstep(function(dtime) ws.step_globalhacks(dtime) end) minetest.settings:set_bool('continuous_forward',false) + function ws.on_connect(func) if not minetest.localplayer then minetest.after(0,function() ws.on_connect(func) end) return end if func then func() end