Page 1 of 1

[boskid][2.0.31] LuaEntity::get_logistic_sections() doesn't work on ghosts (anymore?)

Posted: Sat Jan 18, 2025 10:58 am
by Quezler
125405

It was implemented a few versions ago but i don't recall if i actually verified it at the time, but either way it currently does not work:

Edit 1: note that get_logistic_point() does work on ghosts now, its just that get_logistic_sections() doesn't seem to work.

Re: [2.0.31] LuaEntity::get_logistic_sections() doesn't work on ghosts (anymore?)

Posted: Sat Jan 18, 2025 11:43 am
by boskid
It looks like the fix was implemented but not verified. There is one piece missing. For a temporary workaround you can call get_logistic_sections(0), just ignore an intentionally undocumented parameter.

Re: [2.0.31] LuaEntity::get_logistic_sections() doesn't work on ghosts (anymore?)

Posted: Sat Jan 18, 2025 11:51 am
by Quezler
Thanks for the suggestion, it just so happened to be the same route i took, glad that other method supports ghosts since 2.0.29, looking forward to revert:
https://github.com/Quezler/glutenfree/c ... 1ee7424906

Re: [2.0.31] LuaEntity::get_logistic_sections() doesn't work on ghosts (anymore?)

Posted: Sat Jan 18, 2025 11:53 am
by boskid
This issue is now fixed for 2.0.32.