diff options
author | orwell96 <orwell@bleipb.de> | 2021-11-14 17:31:04 +0100 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2021-11-14 17:32:20 +0100 |
commit | 358bff47b2325a76808f80bfd8c06b684a6efbb8 (patch) | |
tree | ad56853aeab13d93f86a662ea92910e252749b5f /advtrains_interlocking/signal_api.lua | |
parent | 546ae49167d0eabe4617e7506ade97d2cf489d55 (diff) | |
download | advtrains-358bff47b2325a76808f80bfd8c06b684a6efbb8.tar.gz advtrains-358bff47b2325a76808f80bfd8c06b684a6efbb8.tar.bz2 advtrains-358bff47b2325a76808f80bfd8c06b684a6efbb8.zip |
Interlocking: Correct duplicate influence points semi-automaticallyrelease-2.4.0
Searches and deletes duplicate influence points for the same signal when "Influence Point" formspec is opened.
Diffstat (limited to 'advtrains_interlocking/signal_api.lua')
-rw-r--r-- | advtrains_interlocking/signal_api.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/advtrains_interlocking/signal_api.lua b/advtrains_interlocking/signal_api.lua index a969378..83fae4a 100644 --- a/advtrains_interlocking/signal_api.lua +++ b/advtrains_interlocking/signal_api.lua @@ -326,6 +326,7 @@ function advtrains.interlocking.show_ip_form(pos, pname, only_notset) return end local form = "size[7,5]label[0.5,0.5;Signal at "..minetest.pos_to_string(pos).."]" + advtrains.interlocking.db.check_for_duplicate_ip(pos) local pts, connid = advtrains.interlocking.db.get_ip_by_signalpos(pos) if pts then form = form.."label[0.5,1.5;Influence point is set at "..pts.."/"..connid.."]" |