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
|
||||
optional_depends = cloaking, default, fs51
|
||||
optional_depends = cloaking, fs51, xcompat
|
||||
supported_games = *
|
||||
|
|
|
@ -3,12 +3,9 @@
|
|||
--
|
||||
|
||||
-- Use steel block texture in minetest_game
|
||||
local bg
|
||||
if minetest.registered_nodes['default:steelblock'] then
|
||||
bg = 'default_steel_block.png'
|
||||
else
|
||||
bg = '[combine:1x1^[noalpha^[colorize:#aaa'
|
||||
end
|
||||
local bg = minetest.global_exists('xcompat') and xcompat.textures and
|
||||
xcompat.textures.metal.steel.block or
|
||||
'[combine:1x1^[noalpha^[colorize:#aaa'
|
||||
|
||||
minetest.register_node('snippets:button', {
|
||||
description = 'Snippets button',
|
||||
|
|
Loading…
Reference in New Issue