All entities have LuaEntity.prototype.type, it's just the LuaPlayer that doesn't have anything like that.Earendel wrote: I think it would be generally useful if tables that cause errors when properties are accessed could self-identify what they are. This could be especially useful when dealing with information passed across remote interfaces and old data in global tables. It's not that the situation is unworkable now, but it would be a nice improvement.
Please add table_type to LuaEntity and LuaPlayer
- eradicator
- Smart Inserter
- Posts: 5211
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: Please add table_type to LuaEntity and LuaPlayer
Re: Please add table_type to LuaEntity and LuaPlayer
In the next release there is an method
Code: Select all
is_player()