Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
SwissalpS committed Apr 11, 2024
1 parent 35b834c commit 842d69d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ local math_sqrt = math.sqrt
local vector_multiply = vector.multiply
local vector_new = vector.new
local vector_zero = vector.zero

-- global table for exposed functions
glider = {
version = 20240410.234315,
Expand Down Expand Up @@ -239,7 +240,9 @@ local on_step = function(self, dtime, moveresult)
driver:set_hp(1, {
type = "set_hp", cause = "glider:flak"
})
driver:get_inventory():remove_item("main", ItemStack("glider:glider"))
driver:get_inventory():remove_item(
"main", ItemStack("glider:glider"))

shoot_flak_sound(pos)
land = true
end
Expand Down Expand Up @@ -409,12 +412,10 @@ if use_rockets then
end

minetest.register_on_dieplayer(function(player)
--local name = player:get_player_name() hanggliding_players[name] = nil
remove_physics_overrides(player)
end)

minetest.register_on_leaveplayer(function(player)
--local name = player:get_player_name() hanggliding_players[name] = nil hud_overlay_ids[name] = nil
remove_physics_overrides(player)
end)

Expand Down

0 comments on commit 842d69d

Please sign in to comment.