diff options
author | orwell96 <orwell@bleipb.de> | 2018-10-25 22:49:30 +0200 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2018-10-25 22:49:30 +0200 |
commit | 6bb6c7d345ad285d0c5388b1daf83e67a7b466e6 (patch) | |
tree | fe3a182ae3bb52c0c813acd7f1d0531440210646 /advtrains_interlocking/signal_api.lua | |
parent | f007017aa4efc5c51bbfe7202235053a6ae8d50a (diff) | |
download | advtrains-6bb6c7d345ad285d0c5388b1daf83e67a7b466e6.tar.gz advtrains-6bb6c7d345ad285d0c5388b1daf83e67a7b466e6.tar.bz2 advtrains-6bb6c7d345ad285d0c5388b1daf83e67a7b466e6.zip |
Fix demo signals
Diffstat (limited to 'advtrains_interlocking/signal_api.lua')
-rw-r--r-- | advtrains_interlocking/signal_api.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/advtrains_interlocking/signal_api.lua b/advtrains_interlocking/signal_api.lua index 458fc70..9238587 100644 --- a/advtrains_interlocking/signal_api.lua +++ b/advtrains_interlocking/signal_api.lua @@ -238,7 +238,7 @@ function advtrains.interlocking.signal_rc_handler(pos, node, player, itemstack, advtrains.interlocking.show_signalling_form(sigd, pname) else -- permit to set aspect manually - minetest.show_formspec(pname, "at_il_sigasp_"..minetest.pos_to_string(pos), "field[aspect;Set Aspect (F/D)Speed(F/D)Speed(F/D) %['A' to assign IP%];D0D0D]") + minetest.show_formspec(pname, "at_il_sigasp_"..minetest.pos_to_string(pos), "field[aspect;Set Aspect ('A' to assign IP);D0D0D]") end end @@ -252,7 +252,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields) advtrains.interlocking.show_ip_form(pos, pname) return end - local mfs, msps, dfs, dsps, shs = string.match(fields.aspect, "^([FD])([0-9]+)([FD])([0-9]+)([FD])$") + local mfs, msps, dfs, dsps, shs = string.match(fields.aspect, "^([FD])([-0-9]+)([FD])([-0-9]+)([FD])$") local asp = { main = { free = mfs=="F", |