Use different textures in MineClone2-derived games
This commit is contained in:
parent
524dc0c3d5
commit
5383de2c16
|
@ -1,4 +1,5 @@
|
|||
default?
|
||||
mcl_colorblocks?
|
||||
mcl_core?
|
||||
wordedit?
|
||||
intllib?
|
||||
|
|
12
init.lua
12
init.lua
|
@ -12,7 +12,8 @@ local function mod_loaded(modname)
|
|||
end
|
||||
|
||||
local has_default = mod_loaded("default")
|
||||
local has_mcl = mod_loaded("mcl_core")
|
||||
local has_mcl = mod_loaded("mcl_core") and
|
||||
mod_loaded("mcl_colorblocks")
|
||||
|
||||
if not (has_default or has_mcl) then
|
||||
error(
|
||||
|
@ -38,6 +39,15 @@ local control_textures = {
|
|||
"default_obsidian_block.png",
|
||||
"default_gold_block.png",
|
||||
}
|
||||
if has_mcl then
|
||||
control_textures = {
|
||||
"default_steel_block.png",
|
||||
"default_diamond_block.png",
|
||||
"mcl_colorblocks_concrete_orange.png",
|
||||
"default_obsidian.png",
|
||||
"default_gold_block.png",
|
||||
}
|
||||
end
|
||||
|
||||
if is_singleplayer then
|
||||
meshnode.config.max_radius = 16
|
||||
|
|
Loading…
Reference in New Issue