@@ -123,20 +123,20 @@ end
123123
124124-- slot reordering to make sure the first rows of the bone are always populated
125125local function bones_inv_reorder (meta )
126- local next_empty = 1 -- there are no empty slots inside the bones before this
126+ local next_empty = 1 -- there are no empty slots inside the bones before this
127127 local next_populated -- there are no populated slots preceded by unpopulated slots before this
128- local inv = meta :get_inventory ()
129- next_empty = find_next_empty (inv ," main" ,next_empty )
128+ local inv = meta :get_inventory ()
129+ next_empty = find_next_empty (inv , " main" , next_empty )
130130 if next_empty < 0 then
131131 return
132132 end
133- next_populated = find_next_populated (inv ," main" ,next_empty + 1 )
133+ next_populated = find_next_populated (inv , " main" , next_empty + 1 )
134134 while next_populated > 0 do
135135 local stack = inv :get_stack (" main" , next_populated )
136136 inv :set_stack (" main" , next_populated , ItemStack ())
137137 inv :set_stack (" main" , next_empty , stack )
138- next_empty = find_next_empty (inv ," main" ,next_empty + 1 )
139- next_populated = find_next_populated (inv ," main" ,next_populated + 1 )
138+ next_empty = find_next_empty (inv , " main" , next_empty + 1 )
139+ next_populated = find_next_populated (inv , " main" , next_populated + 1 )
140140 end
141141end
142142
0 commit comments