[1.1.61] API Docs for LuaPlayer.remove_alert wrong parameter type for "prototype" filter field
Posted: Sat Jul 09, 2022 11:34 pm
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
If you provide a prototype name (string) then it accepts it without complaint.
Docs Page: https://lua-api.factorio.com/latest/Lua ... move_alert