aboutsummaryrefslogtreecommitdiff
path: root/advtrains_signals_ks/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'advtrains_signals_ks/init.lua')
-rwxr-xr-x[-rw-r--r--]advtrains_signals_ks/init.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/advtrains_signals_ks/init.lua b/advtrains_signals_ks/init.lua
index 1c60a0e..aa1b1cb 100644..100755
--- a/advtrains_signals_ks/init.lua
+++ b/advtrains_signals_ks/init.lua
@@ -270,11 +270,18 @@ minetest.register_craft({
},
})
+local sign_material = "default:sign_wall_steel" --fallback
+if minetest.get_modpath("basic_materials") then
+ sign_material = "basic_materials:plastic_sheet"
+end
+--print("Sign Material: "..sign_material)
+
minetest.register_craft({
output = "advtrains_signals_ks:sign_8_0 2",
recipe = {
- {'basic_materials:plastic_sheet', 'dye:black'},
+ {sign_material, 'dye:black'},
{'default:stick', ''},
{'default:stick', ''},
},
})
+sign_material = nil