Browse Source

fix copypasta

main
Hendrik Langer 5 years ago
parent
commit
b796ac974b
  1. 10
      init.lua

10
init.lua

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

Loading…
Cancel
Save