[boskid][2.0.42] Pretty printer for LuaPlayer has the wrong value for index
Posted: Wed Mar 26, 2025 5:56 pm
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.
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