mirror of
https://github.com/mt-mods/biome_lib.git
synced 2024-12-25 10:20:18 +01:00
take the integer of that last division I added
always round up. otherwise it'll break the `for` loop if a mod supplies a value not divisible by 25 :-)
This commit is contained in:
parent
26dbbb5a67
commit
9ed4858518
2
init.lua
2
init.lua
@ -353,7 +353,7 @@ function biome_lib:populate_surfaces(biome, nodes_or_function_or_model, snodes,
|
||||
return 0
|
||||
end
|
||||
|
||||
for i = 1, math.min(biome.max_count/25, num_in_biome_nodes) do
|
||||
for i = 1, math.min(math.ceil(biome.max_count/25), num_in_biome_nodes) do
|
||||
local tries = 0
|
||||
local spawned = false
|
||||
while tries < 2 and not spawned do
|
||||
|
Loading…
Reference in New Issue
Block a user