Fix listmobs command
parent
c45c911a0a
commit
c5559c13bf
1
TODO.txt
1
TODO.txt
|
@ -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
|
||||
|
|
4
api.lua
4
api.lua
|
@ -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.
|
||||
--
|
||||
|
|
|
@ -3,6 +3,7 @@ next
|
|||
----
|
||||
- added missing "textdomain" line to localization files
|
||||
- updated localization template & Spanish translation
|
||||
- fixed "listmobs" command
|
||||
|
||||
|
||||
v1.0
|
||||
|
|
|
@ -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.
|
||||
--
|
||||
|
|
Loading…
Reference in New Issue