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

This subforum contains all the issues which we already resolved.
User avatar
Muppet9010
Filter Inserter
Filter Inserter
Posts: 279
Joined: Sat Dec 09, 2017 6:01 pm
Contact:

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

Post 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

Rseding91
Factorio Staff
Factorio Staff
Posts: 14150
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post by Rseding91 »

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.

Post Reply

Return to “Resolved Problems and Bugs”