mirror of
https://github.com/minetest/minetest.git
synced 2024-12-24 07:02:23 +01:00
Make options
local here.
Undoubtably this may cause problems later if unchecked. ``` 2016-03-22 21:57:52: WARNING[Server]: Assignment to undeclared global "options" inside a function at .../sofar/git/minetest/bin/../builtin/game/chatcommands.lua:862. ```
This commit is contained in:
parent
80cec4702d
commit
2f640888d8
@ -859,7 +859,7 @@ core.register_chatcommand("clearobjects", {
|
|||||||
description = "clear all objects in world",
|
description = "clear all objects in world",
|
||||||
privs = {server=true},
|
privs = {server=true},
|
||||||
func = function(name, param)
|
func = function(name, param)
|
||||||
options = {}
|
local options = {}
|
||||||
if param == "" or param == "full" then
|
if param == "" or param == "full" then
|
||||||
options.mode = "full"
|
options.mode = "full"
|
||||||
elseif param == "quick" then
|
elseif param == "quick" then
|
||||||
|
Loading…
Reference in New Issue
Block a user