[boskid][2.0.42] Pretty printer for LuaPlayer has the wrong value for index

Bugs which we just recently fixed in our development version and will reach you in the next release.
kryojenik
Inserter
Inserter
Posts: 45
Joined: Fri Jun 26, 2020 8:18 pm
Contact:

[boskid][2.0.42] Pretty printer for LuaPlayer has the wrong value for index

Post by kryojenik »

I believe this is only a minor cosmetic issue, but figured I'd report it anyway.

When doing game.print() on a LuaPlayer object it pretty prints some of the members (index, name, controller, position, surface, and connected). In that display it shows the index as '0' when the index is actually 1. If you interrogate the object directly and print the 'index' member you get the correct value.
pic
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3754
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [boskid][2.0.42] Pretty printer for LuaPlayer has the wrong value for index

Post by boskid »

Fixed for 2.0.44.
Post Reply

Return to “Resolved for the next release”