diff options
Diffstat (limited to 'advtrains')
-rw-r--r-- | advtrains/trainlogic.lua | 2 |
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) |