summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2024-04-26 19:23:25 -0500
committercheapie <no-email-for-you@example.com>2024-04-26 19:23:25 -0500
commitb2eccc0bd9396174963cec6fff755f00c4a82cc3 (patch)
tree57eef5736a34a1c5132511ac4a0e2a38e6f8a4b7
parent97dfb694a2d40f38462dfd68ef2c9a7baa506f9a (diff)
downloadcelevator-b2eccc0bd9396174963cec6fff755f00c4a82cc3.tar
celevator-b2eccc0bd9396174963cec6fff755f00c4a82cc3.tar.gz
celevator-b2eccc0bd9396174963cec6fff755f00c4a82cc3.tar.bz2
celevator-b2eccc0bd9396174963cec6fff755f00c4a82cc3.tar.xz
celevator-b2eccc0bd9396174963cec6fff755f00c4a82cc3.zip
Update PI text immediately upon connection
-rw-r--r--pilantern.lua2
1 files changed, 2 insertions, 0 deletions
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)