From 72f4e36b7bd5be4ec4e8a332caf0c71c67516293 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Sat, 28 Sep 2024 17:54:43 +0100 Subject: [PATCH] use nodecore stone texture if found --- init.lua | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/init.lua b/init.lua index e49901e..9252d7a 100644 --- a/init.lua +++ b/init.lua @@ -447,15 +447,23 @@ end local player_pos = {} +-- stone texture + +local stone_tex = "default_stone.png" + +if minetest.get_modpath("nc_terrain") then + stone_tex = "nc_terrain_stone.png" +end + -- protection node minetest.register_node("protector:protect", { description = S("Protection Block") .. " (" .. S("USE for area check") .. ")", drawtype = "nodebox", tiles = { - "default_stone.png^protector_overlay.png", - "default_stone.png^protector_overlay.png", - "default_stone.png^protector_overlay.png^protector_logo.png" + stone_tex .. "^protector_overlay.png", + stone_tex .. "^protector_overlay.png", + stone_tex .. "^protector_overlay.png^protector_logo.png" }, sounds = default.node_sound_stone_defaults(), groups = {dig_immediate = 2, unbreakable = 1},