Use xcompat for steel block texture
This commit is contained in:
parent
31f7314591
commit
bf10290b39
2
mod.conf
2
mod.conf
|
@ -1,3 +1,3 @@
|
||||||
name = snippets
|
name = snippets
|
||||||
optional_depends = cloaking, default, fs51
|
optional_depends = cloaking, fs51, xcompat
|
||||||
supported_games = *
|
supported_games = *
|
||||||
|
|
|
@ -3,12 +3,9 @@
|
||||||
--
|
--
|
||||||
|
|
||||||
-- Use steel block texture in minetest_game
|
-- Use steel block texture in minetest_game
|
||||||
local bg
|
local bg = minetest.global_exists('xcompat') and xcompat.textures and
|
||||||
if minetest.registered_nodes['default:steelblock'] then
|
xcompat.textures.metal.steel.block or
|
||||||
bg = 'default_steel_block.png'
|
'[combine:1x1^[noalpha^[colorize:#aaa'
|
||||||
else
|
|
||||||
bg = '[combine:1x1^[noalpha^[colorize:#aaa'
|
|
||||||
end
|
|
||||||
|
|
||||||
minetest.register_node('snippets:button', {
|
minetest.register_node('snippets:button', {
|
||||||
description = 'Snippets button',
|
description = 'Snippets button',
|
||||||
|
|
Loading…
Reference in New Issue