summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 38406b0..c9cbfca 100644
--- a/init.lua
+++ b/init.lua
@@ -481,6 +481,11 @@ minetest.register_on_shutdown(function()
end
end)
+-- Automatically dismount corpses
+minetest.register_on_dieplayer(function(player)
+ attached[player:get_player_name()] = nil
+end)
+
-- Register the entity
minetest.register_entity("bike:bike", bike)