aboutsummaryrefslogtreecommitdiff
path: root/advtrains/trainlogic.lua
diff options
context:
space:
mode:
Diffstat (limited to 'advtrains/trainlogic.lua')
-rw-r--r--advtrains/trainlogic.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/advtrains/trainlogic.lua b/advtrains/trainlogic.lua
index 499144b..d83d89f 100644
--- a/advtrains/trainlogic.lua
+++ b/advtrains/trainlogic.lua
@@ -163,6 +163,8 @@ minetest.register_on_dieplayer(function(player)
wagon:get_off_plr(pname)
end
end
+ -- just in case no wagon felt responsible for this player: clear train mapping
+ advtrains.player_to_train_mapping[pname] = nil
end
end)