Skip to content

Commit cc6b859

Browse files
committed
coding style fix
1 parent cd8cb78 commit cc6b859

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

mods/bones/init.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
local S = minetest.get_translator("bones")
88

99
local bones_max_slots = tonumber(minetest.settings:get("bones_max_slots")) or 15 * 10
10-
local min_inv_size = 4 * 8 -- display and provide at least this many slots
10+
local min_inv_size = 4 * 8 -- display and provide at least this many slots
1111

1212
bones = {}
1313

@@ -44,14 +44,13 @@ local function get_bones_formspec_for_size(numitems)
4444
end
4545
local output={}
4646
appendmulti(output, "size[", 8.5, ",", 9, "]")
47-
if scroll then
48-
-- ok so I don't want to figure out the constants for (rows-delta)*multiplier so I'll let this code do it for me
47+
if scroll then
4948
local row_05=13.2
5049
local row_15=128
5150
local multiplier=(row_15-row_05)/10
5251
appendmulti(output, "scrollbaroptions[max=",(rows-5)*multiplier+row_05,"]")
53-
appendmulti(output, "scrollbar[8,0;0.3,4.5;vertical;bones_scroll;0]")
54-
appendmulti(output, "scroll_container[0,0.3;10.3,4.95;bones_scroll;vertical;0.1]")
52+
appendmulti(output, "scrollbar[8,0;0.3,4.5;vertical;bones_scroll;0]",
53+
"scroll_container[0,0.3;10.3,4.95;bones_scroll;vertical;0.1]")
5554
end
5655
appendmulti(output, "list[current_name;main;0,0;", cols, ",", rows, ";]")
5756
if scroll then
@@ -362,7 +361,8 @@ local function place_bones(player, bones_pos, items)
362361
bones_meta:set_string("owner", player_name)
363362
if share_bones_time ~= 0 then
364363
bones_meta:set_string("infotext", S("@1's fresh bones", player_name))
365-
if share_bones_time_early == 0 or not minetest.is_protected(bones_pos, player_name) then
364+
if share_bones_time_early == 0 or
365+
not minetest.is_protected(bones_pos, player_name) then
366366
bones_meta:set_int("time", 0)
367367
else
368368
bones_meta:set_int("time", share_bones_time - share_bones_time_early)

0 commit comments

Comments
 (0)