whitespace indents

This commit is contained in:
Luke aka SwissalpS 2022-05-16 21:42:03 +02:00
parent 54afc348ee
commit ec06308990
1 changed files with 10 additions and 9 deletions

View File

@ -61,7 +61,7 @@ end
hangglider = {} --Make this global, so other mods can tell if hangglider exists. hangglider = {} --Make this global, so other mods can tell if hangglider exists.
hangglider.use = {} hangglider.use = {}
if HUD_Overlay then if HUD_Overlay then
hangglider.id = {} -- hud id for displaying overlay with struts hangglider.id = {} -- hud id for displaying overlay with struts
end end
if debug then hangglider.debug = {} end -- hud id for debug data if debug then hangglider.debug = {} end -- hud id for debug data
--hangglider.airbreak = {} -- true if falling fast when equip --hangglider.airbreak = {} -- true if falling fast when equip
@ -296,14 +296,15 @@ minetest.register_on_joinplayer(function(player)
}) })
hangglider.use[pname] = false hangglider.use[pname] = false
if HUD_Overlay then if HUD_Overlay then
hangglider.id[pname] = player:hud_add({ hangglider.id[pname] = player:hud_add({
hud_elem_type = "image", hud_elem_type = "image",
text = "blank.png", text = "blank.png",
position = {x=0, y=0}, position = {x=0, y=0},
scale = {x=-100, y=-100}, scale = {x=-100, y=-100},
alignment = {x=1, y=1}, alignment = {x=1, y=1},
offset = {x=0, y=0} offset = {x=0, y=0},
}) end })
end
if debug then if debug then
hangglider.debug[pname] = {id = player:hud_add({hud_elem_type = "text", hangglider.debug[pname] = {id = player:hud_add({hud_elem_type = "text",
position = {x=0.5, y=0.1}, position = {x=0.5, y=0.1},