projects
/
oweals
/
minetest_game.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Carts: Reset player view and attachment table on death
[oweals/minetest_game.git]
/
mods
/
carts
/
cart_entity.lua
diff --git
a/mods/carts/cart_entity.lua
b/mods/carts/cart_entity.lua
index 39c4c5ca01709b28625e652cd5768988e29d3a21..b95fde703eba92cc9f141efb040ec16e8eacb95c 100644
(file)
--- a/
mods/carts/cart_entity.lua
+++ b/
mods/carts/cart_entity.lua
@@
-66,7
+66,7
@@
end
-- 0.5.x and later: When the driver leaves
function cart_entity:on_detach_child(child)
if child and child:get_player_name() == self.driver then
- self.driver = nil
+ carts:manage_attachment(child, nil)
end
end