aboutsummaryrefslogtreecommitdiff
path: root/games/devtest
diff options
context:
space:
mode:
authorWuzzy <Wuzzy2@mail.ru>2020-05-26 02:11:19 +0200
committersfan5 <sfan5@live.de>2020-05-29 22:45:40 +0200
commit65a6a316d081d3951438bbbcfce74c9c65db407a (patch)
treeb063fae3fd4bb9d75be05905f6f53ae19982fb01 /games/devtest
parent9a64a9fd9427fc3b62d4dc9bf1ca7c15477ebc5a (diff)
downloadminetest-65a6a316d081d3951438bbbcfce74c9c65db407a.tar.gz
minetest-65a6a316d081d3951438bbbcfce74c9c65db407a.tar.bz2
minetest-65a6a316d081d3951438bbbcfce74c9c65db407a.zip
Add minetest.is_creative_enabled
Diffstat (limited to 'games/devtest')
-rw-r--r--games/devtest/mods/util_commands/init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/games/devtest/mods/util_commands/init.lua b/games/devtest/mods/util_commands/init.lua
index ad8d3f9ba..3a0e91a41 100644
--- a/games/devtest/mods/util_commands/init.lua
+++ b/games/devtest/mods/util_commands/init.lua
@@ -66,7 +66,7 @@ if s_infplace == "true" then
elseif s_infplace == "false" then
infplace = false
else
- infplace = minetest.settings:get_bool("creative_mode", false)
+ infplace = minetest.is_creative_enabled("")
end
minetest.register_chatcommand("infplace", {