Page 1 of 1

[0.18.9] LuaEntity::splitter_filter doesn't accept LuaItemPrototype

Posted: Sat Feb 29, 2020 8:41 pm
by Therax
The documentation for LuaEntity::splitter_filter indicates it's a read-write of LuaItemPrototype. Reading from this property does correctly return a LuaItemPrototype, but attempting to write one gives "string expected, got table". Writing with the name of the item prototype works correctly.

Expected: writing either a string (name of an item) or an actual LuaItemPrototype should set the splitter's filter.

Actual: only writing a string works, writing a LuaItemPrototype results in an error.

Re: [0.18.9] LuaEntity::splitter_filter doesn't accept LuaItemPrototype

Posted: Tue Mar 03, 2020 10:38 pm
by Rseding91
Thanks for the report. It's now resolved for the next release.