forked from mtcontrib/maidroid
Update on_step
This commit is contained in:
parent
7ed8b8172a
commit
4ee3ef55dd
@ -517,6 +517,11 @@ function maidroid.register_maidroid(product_name, def)
|
|||||||
|
|
||||||
-- on_step is a callback function that is called every delta times.
|
-- on_step is a callback function that is called every delta times.
|
||||||
local function on_step(self, dtime)
|
local function on_step(self, dtime)
|
||||||
|
-- if owner didn't login, the maidroid does nothing.
|
||||||
|
if not minetest.get_player_by_name(self.owner_name) then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
-- pickup surrounding item.
|
-- pickup surrounding item.
|
||||||
pickup_item(self)
|
pickup_item(self)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user