Page 1 of 1

LuaEntity.direction fails to read character direction

Posted: Sun Jun 17, 2018 5:33 pm
by klugemonkey
LuaEntity.direction fails to read a character direction and always returns 0 (defines.direction.north) no matter what direction the character is facing.
Writing a character direction with LuaEntity.direction works as expected and the character's direction changes.

This was tested on 0.16.51

Re: LuaEntity.direction fails to read character direction

Posted: Mon Jun 18, 2018 9:48 am
by Rseding91
Thanks for the report. It's now fixed for 0.17. In the mean time you can read walking_state.direction to get the real direction.