Fix listmobs command

master
Jordan Irwin 2021-08-03 17:06:39 -07:00
parent c45c911a0a
commit c5559c13bf
4 changed files with 5 additions and 5 deletions

View File

@ -3,4 +3,3 @@ TODO:
- show formspec when "/list" called with no parameters
- optimize search with regular expressions
- clean up & optimize code
- fix "listmobs" command

View File

@ -22,10 +22,6 @@ for k in pairs(aux.options) do
table.insert(known_switches, k)
end
if core.global_exists("mobs") then
table.insert(aux.known_types, "mobs")
end
--- Retrieves a simplified table containing string names of registered items or entities.
--

View File

@ -3,6 +3,7 @@ next
----
- added missing "textdomain" line to localization files
- updated localization template & Spanish translation
- fixed "listmobs" command
v1.0

View File

@ -19,6 +19,10 @@ local known_types = {
"tools",
}
if core.global_exists("mobs") then
table.insert(known_types, "mobs")
end
--- Checks if value is contained in list.
--