mirror of
https://github.com/tacigar/maidroid.git
synced 2024-11-05 17:50:33 +01:00
Add is_named method
This commit is contained in:
parent
cf8d9fb246
commit
57192805af
|
@ -156,6 +156,11 @@ function maidroid.maidroid.move_main_to_wield(self, itemname)
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- maidroid.maidroid.is_named reports the maidroid is still named.
|
||||||
|
function maidroid.maidroid.is_named(self)
|
||||||
|
return self.nametag ~= ""
|
||||||
|
end
|
||||||
|
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
-- maidroid.manufacturing_data represents a table that contains manufacturing data.
|
-- maidroid.manufacturing_data represents a table that contains manufacturing data.
|
||||||
|
@ -542,6 +547,7 @@ function maidroid.register_maidroid(product_name, def)
|
||||||
set_yaw_by_direction = maidroid.maidroid.set_yaw_by_direction,
|
set_yaw_by_direction = maidroid.maidroid.set_yaw_by_direction,
|
||||||
get_wield_item_stack = maidroid.maidroid.get_wield_item_stack,
|
get_wield_item_stack = maidroid.maidroid.get_wield_item_stack,
|
||||||
move_main_to_wield = maidroid.maidroid.move_main_to_wield,
|
move_main_to_wield = maidroid.maidroid.move_main_to_wield,
|
||||||
|
is_named = maidroid.maidroid.is_named,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- register maidroid egg.
|
-- register maidroid egg.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user