From b2eccc0bd9396174963cec6fff755f00c4a82cc3 Mon Sep 17 00:00:00 2001 From: cheapie Date: Fri, 26 Apr 2024 19:23:25 -0500 Subject: Update PI text immediately upon connection --- pilantern.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pilantern.lua b/pilantern.lua index b79d872..c156934 100644 --- a/pilantern.lua +++ b/pilantern.lua @@ -175,6 +175,7 @@ minetest.register_node("celevator:pi",{ local meta = minetest.get_meta(pos) meta:set_int("carid",carid) meta:set_string("formspec","") + celevator.pi.settext(pos,carinfo.pitext) end end, on_destruct = function(pos) @@ -365,6 +366,7 @@ for _,state in ipairs(validstates) do local meta = minetest.get_meta(pos) meta:set_int("carid",carid) meta:set_string("formspec","") + celevator.pi.settext(pos,carinfo.pitext) end end, on_destruct = function(pos) -- cgit v1.2.3