mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00:00
Add minetest.is_creative_enabled
This commit is contained in:
parent
9a64a9fd94
commit
65a6a316d0
5 changed files with 17 additions and 10 deletions
|
@ -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", {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue