aboutsummaryrefslogtreecommitdiff
path: root/advtrains_signals_ks/init.lua
diff options
context:
space:
mode:
authorywang <yw05@forksworld.de>2021-05-27 14:20:24 +0200
committerywang <yw05@forksworld.de>2021-11-05 20:28:38 +0100
commite683401450164c205db736ddd2bdd7331f1d5ed8 (patch)
tree7b37bdd495b9e72956c0785d89b5a194af4d2db1 /advtrains_signals_ks/init.lua
parent8a9f1389a5ee4c53b423b548bf8c7355adb7ec94 (diff)
downloadadvtrains-e683401450164c205db736ddd2bdd7331f1d5ed8.tar.gz
advtrains-e683401450164c205db736ddd2bdd7331f1d5ed8.tar.bz2
advtrains-e683401450164c205db736ddd2bdd7331f1d5ed8.zip
Use realistic Ra 10 signal sign
Diffstat (limited to 'advtrains_signals_ks/init.lua')
-rwxr-xr-xadvtrains_signals_ks/init.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/advtrains_signals_ks/init.lua b/advtrains_signals_ks/init.lua
index b05506e..dbca3dc 100755
--- a/advtrains_signals_ks/init.lua
+++ b/advtrains_signals_ks/init.lua
@@ -177,11 +177,12 @@ for _, rtab in ipairs({
["hfs"] = {asp = { main = false, shunt = false }, n = "pam"},
["pam"] = {asp = { main = -1, shunt = false, proceed_as_main = true}, n = "8"},
}) do
+ local tile = "advtrains_signals_ks_sign_"..typ..".png"
minetest.register_node("advtrains_signals_ks:sign_"..typ.."_"..rot, {
description = "Signal Sign",
drawtype = "mesh",
- mesh = "advtrains_signals_ks_sign_smr"..rot..".obj",
- tiles = {"advtrains_signals_ks_signpost.png", "advtrains_signals_ks_sign_"..typ..".png"},
+ mesh = "advtrains_signals_ks_sign"..(typ == "hfs" and "_hfs" or "").."_smr"..rot..".obj",
+ tiles = typ == "hfs" and {tile} or {"advtrains_signals_ks_signpost.png", tile},
paramtype="light",
sunlight_propagates=true,