Use xcompat for steel block texture

This commit is contained in:
luk3yx 2024-03-05 10:10:35 +13:00
parent 31f7314591
commit bf10290b39
2 changed files with 4 additions and 7 deletions

View File

@ -1,3 +1,3 @@
name = snippets name = snippets
optional_depends = cloaking, default, fs51 optional_depends = cloaking, fs51, xcompat
supported_games = * supported_games = *

View File

@ -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',