From 1f8da82be406721a20cad7ca2005f44268942103 Mon Sep 17 00:00:00 2001 From: Hume2 Date: Mon, 10 Sep 2018 20:36:01 +0200 Subject: Automatically dismount players on death --- init.lua | 5 +++++ 1 file changed, 5 insertions(+) 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) -- cgit v1.2.3