Skip to content

Commit 0d46e05

Browse files
committed
coding style fix
1 parent 67d0cd9 commit 0d46e05

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

@@ -79,14 +79,13 @@ local function get_bones_formspec_for_size(numitems)
7979
end
8080
local output={}
8181
appendmulti(output, "size[", 8.5, ",", 9, "]")
82-
if scroll then
83-
-- 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
82+
if scroll then
8483
local row_05=13.2
8584
local row_15=128
8685
local multiplier=(row_15-row_05)/10
8786
appendmulti(output, "scrollbaroptions[max=",(rows-5)*multiplier+row_05,"]")
88-
appendmulti(output, "scrollbar[8,0;0.3,4.5;vertical;bones_scroll;0]")
89-
appendmulti(output, "scroll_container[0,0.3;10.3,4.95;bones_scroll;vertical;0.1]")
87+
appendmulti(output, "scrollbar[8,0;0.3,4.5;vertical;bones_scroll;0]",
88+
"scroll_container[0,0.3;10.3,4.95;bones_scroll;vertical;0.1]")
9089
end
9190
appendmulti(output, "list[current_name;main;0,0;", cols, ",", rows, ";]")
9291
if scroll then
@@ -392,7 +391,8 @@ local function place_bones(player, bones_pos, items)
392391
bones_meta:set_string("owner", player_name)
393392
if share_bones_time ~= 0 then
394393
bones_meta:set_string("infotext", S("@1's fresh bones", player_name))
395-
if share_bones_time_early == 0 or not minetest.is_protected(bones_pos, player_name) then
394+
if share_bones_time_early == 0 or
395+
not minetest.is_protected(bones_pos, player_name) then
396396
bones_meta:set_int("time", 0)
397397
else
398398
bones_meta:set_int("time", share_bones_time - share_bones_time_early)

0 commit comments

Comments
 (0)