mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 14:31:50 +00:00
fix stdlib.lua
This commit is contained in:
parent
cd4c92790f
commit
6ec33ab98c
1 changed files with 3 additions and 3 deletions
|
|
@ -248,7 +248,7 @@ function _rules.create(name, value, handler)
|
||||||
end
|
end
|
||||||
if _rules.get(name) == nil then
|
if _rules.get(name) == nil then
|
||||||
_rules.set(name, value)
|
_rules.set(name, value)
|
||||||
else
|
elseif handler then
|
||||||
handler(_rules.get(name))
|
handler(_rules.get(name))
|
||||||
end
|
end
|
||||||
return handlerid
|
return handlerid
|
||||||
|
|
@ -265,11 +265,11 @@ end
|
||||||
function _rules.clear()
|
function _rules.clear()
|
||||||
_rules.rules = {}
|
_rules.rules = {}
|
||||||
_rules.nextid = 1
|
_rules.nextid = 1
|
||||||
|
|
||||||
_rules.create("allow-cheats", true)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function __vc_on_hud_open()
|
function __vc_on_hud_open()
|
||||||
|
_rules.create("allow-cheats", true)
|
||||||
|
|
||||||
_rules.create("allow-content-access", hud._is_content_access(), function(value)
|
_rules.create("allow-content-access", hud._is_content_access(), function(value)
|
||||||
hud._set_content_access(value)
|
hud._set_content_access(value)
|
||||||
input.set_enabled("player.pick", value)
|
input.set_enabled("player.pick", value)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue