|
|
@ -1,14 +1,14 @@ |
|
|
|
-- creative_hand/init.lua |
|
|
|
-- creative_hands/init.lua |
|
|
|
|
|
|
|
-- Load support for MT game translation. |
|
|
|
local S = minetest.get_translator("creative") |
|
|
|
local S = minetest.get_translator("creative_hands") |
|
|
|
|
|
|
|
creative = {} |
|
|
|
creative.get_translator = S |
|
|
|
creative_hands = {} |
|
|
|
creative_hands.get_translator = S |
|
|
|
|
|
|
|
local creative_mode_cache = minetest.settings:get_bool("creative_mode") |
|
|
|
|
|
|
|
function creative.is_enabled_for(name) |
|
|
|
function creative_hands.creative_is_enabled_for(name) |
|
|
|
return creative_mode_cache or |
|
|
|
minetest.check_player_privs(name, {creative = true}) |
|
|
|
end |
|
|
|