Compare commits
3 Commits
5265024231
...
1a97abe49e
| Author | SHA1 | Date | |
|---|---|---|---|
| 1a97abe49e | |||
| 3255b919e2 | |||
| 2b7600b745 |
@@ -128,6 +128,7 @@ end
|
||||
---@param playerName string
|
||||
function BaseUI:closeForm(playerName)
|
||||
core.close_formspec(playerName, self.name)
|
||||
Smc.clearActiveFormspec(playerName)
|
||||
end
|
||||
|
||||
|
||||
|
||||
@@ -408,3 +408,17 @@ function table.key_value_list(t, separator)
|
||||
|
||||
return result
|
||||
end
|
||||
|
||||
---Finds and removes from the list all elements matching the value.
|
||||
---@generic value any
|
||||
---@param list value[]
|
||||
---@param value value
|
||||
---@param value[]
|
||||
function table.remove_value(list, value)
|
||||
local index = table.indexof(list, value)
|
||||
while index ~= -1 do
|
||||
list = table.remove(list, index)
|
||||
end
|
||||
|
||||
return list
|
||||
end
|
||||
|
||||
Submodule util/ide-helper updated: c4e69bae77...453718fa83
Reference in New Issue
Block a user