fixes :3
All checks were successful
Error Check / luacheck_errcheck (pull_request) Successful in 32s
Unit Tests / busted_unit_test (pull_request) Successful in 45s

This commit is contained in:
Mrrp 2024-12-10 17:03:00 -08:00
parent 224e58577f
commit 19fab12455
5 changed files with 37 additions and 40 deletions

View file

@ -11,8 +11,6 @@
-- with this program; if not, see <http://www.gnu.org/licenses/>.
---------------------------------------------------------------------------
vox_inventory {}
-- Includes
dofile(core.get_modpath(core.get_current_modname()) .. "/survival.lua")
@ -26,7 +24,7 @@ function core.creative_enabled_for(name)
if player then
return player:get_meta():get_string("gamemode") == "creative"
end
core.log(["warning"], "core.creative_enabled_for: player not found: " .. name)
core.log("warning", "core.creative_enabled_for: player not found: " .. name)
return false
end
@ -36,6 +34,6 @@ function core.survival_enabled_for(name)
if player then
return player:get_meta():get_string("gamemode") == "survival"
end
core.log(["warning"], "core.survival_enabled_for: player not found: " .. name)
core.log("warning", "core.survival_enabled_for: player not found: " .. name)
return false
end