1
0
mirror of https://github.com/SmallJoker/bitchange.git synced 2025-07-20 17:10:24 +02:00

No ore generation by default, remove Coin base

Shop: limit title length to 80 characters
Do not list ore nodes in creative inventory
10 MineNinths for a new player on start (previously 2)
Replace bitchange privilege with protection_bypass
Revert to classic 16px shop texture & run OptiPNG
This commit is contained in:
SmallJoker
2017-11-25 11:38:52 +01:00
parent 0fbda6a40f
commit 3f029c82d6
13 changed files with 29 additions and 46 deletions

View File

@ -1,12 +1,7 @@
--Created by Krock for the BitChange mod
bitchange = {}
bitchange.mod_path = minetest.get_modpath("bitchange")
local world_path = minetest.get_worldpath()
if rawget(_G, "freeminer") then
minetest = freeminer
end
dofile(bitchange.mod_path.."/config.default.txt")
-- Copied from moretrees mod
if not io.open(world_path.."/bitchange_config.txt", "r") then
@ -54,7 +49,7 @@ if bitchange.enable_bank then
dofile(bitchange.mod_path.."/bank.lua")
bitchange.bank.file_path = world_path.."/bitchange_bank_"..loaded_bank
dofile(bitchange.mod_path.."/bank_"..loaded_bank..".lua")
print("[BitChange] Bank loaded: "..loaded_bank)
minetest.log("action", "[BitChange] Bank loaded: "..loaded_bank)
end
end
@ -66,13 +61,12 @@ if not minetest.setting_getbool("creative_mode") and bitchange.initial_give > 0
end
-- Privs
minetest.register_privilege("bitchange", "Can access to owned nodes of the bitchange mod")
function bitchange.has_access(owner, player_name)
if player_name == owner or owner == "" then
return true
end
local privs = minetest.get_player_privs(player_name)
return privs.server or privs.bitchange
return privs.server or privs.protection_bypass
end
print("[BitChange] Loaded.")
minetest.log("action", "[BitChange] Loaded.")