Please add table_type to LuaEntity and LuaPlayer

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: Please add table_type to LuaEntity and LuaPlayer

Post by eradicator »

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.
All entities have LuaEntity.prototype.type, it's just the LuaPlayer that doesn't have anything like that.

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5150
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: Please add table_type to LuaEntity and LuaPlayer

Post by Klonan »

In the next release there is an

Code: Select all

is_player()
method

Post Reply

Return to “Implemented mod requests”