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
[1.1.61] API Docs for LuaPlayer.remove_alert wrong parameter type for "prototype" filter field
- Muppet9010
- Filter Inserter
- Posts: 279
- Joined: Sat Dec 09, 2017 6:01 pm
- Contact:
Re: [1.1.61] API Docs for LuaPlayer.remove_alert wrong parameter type for "prototype" filter field
Thanks for the report. It's now fixed for the next release.
If you want to get ahold of me I'm almost always on Discord.