When calling LuaControl.opened the documentation says that LuaEntity or LuaItemStack or LuaEquipment or LuaEquipmentGrid or LuaPlayer or LuaGuiElement or defines.gui_type could be returned.
Is there an elegant way to get the actual runtime type from the returned object?
what does Player.opened return?
Re: what does Player.opened return?
That's what opened_gui_type is for
- eradicator
- Smart Inserter
- Posts: 5211
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: what does Player.opened return?
Common.object_name also exists nowadays.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.