forked from VoxeLibre/VoxeLibre
Removed mention of mineclonia.
This commit is contained in:
parent
bf6db80ce0
commit
be175ebf7d
|
@ -8,7 +8,7 @@ local old_is_creative_enabled = minetest.is_creative_enabled
|
|||
function minetest.is_creative_enabled(name)
|
||||
if old_is_creative_enabled(name) then return true end
|
||||
if not name then return false end
|
||||
assert(type(name) == "string", "minetest.is_creative_enabled requires a string (the playername) argument. This is likely an error in a non-mineclonia mod.")
|
||||
assert(type(name) == "string", "minetest.is_creative_enabled requires a string (the playername) argument.")
|
||||
local p = minetest.get_player_by_name(name)
|
||||
if p then
|
||||
return p:get_meta():get_string("gamemode") == "creative"
|
||||
|
|
Loading…
Reference in New Issue