Page 1 of 1

[1.1.61] API Docs for LuaPlayer.remove_alert wrong parameter type for "prototype" filter field

Posted: Sat Jul 09, 2022 11:34 pm
by Muppet9010
The function LuaPlayer.remove_alert takes a table of fields, including one named "prototype". In the API docs its listed as type "LuaEntityPrototype?", however, if you provide an entity prototype object (LuaEntity.prototype) you get back the error message: 'prototype': string expected, got table

If you provide a prototype name (string) then it accepts it without complaint.

Docs Page: https://lua-api.factorio.com/latest/Lua ... move_alert

Re: [1.1.61] API Docs for LuaPlayer.remove_alert wrong parameter type for "prototype" filter field

Posted: Mon Jul 11, 2022 3:45 pm
by Rseding91
Thanks for the report. It's now fixed for the next release.