0
0
Fork 0

Removed mention of mineclonia.

This commit is contained in:
James Clarke 2024-01-17 13:03:39 +00:00
parent bf6db80ce0
commit be175ebf7d
1 changed files with 1 additions and 1 deletions

View File

@ -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"