mirror of
https://github.com/BentoBoxWorld/Greenhouses.git
synced 2024-10-31 15:59:30 +01:00
parent
02c2135501
commit
53cb40e7c4
@ -167,7 +167,7 @@ public class EcoSystemManager {
|
|||||||
Collections.shuffle(list, new Random(System.currentTimeMillis()));
|
Collections.shuffle(list, new Random(System.currentTimeMillis()));
|
||||||
Iterator<GrowthBlock> it = list.iterator();
|
Iterator<GrowthBlock> it = list.iterator();
|
||||||
// Check if the greenhouse is full
|
// Check if the greenhouse is full
|
||||||
if (sum >= gh.getBiomeRecipe().getMaxMob()) {
|
if (gh.getBiomeRecipe().getMaxMob() > -1 && sum >= gh.getBiomeRecipe().getMaxMob()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
while (it.hasNext() && (sum == 0 || gh.getArea() / sum >= gh.getBiomeRecipe().getMobLimit())) {
|
while (it.hasNext() && (sum == 0 || gh.getArea() / sum >= gh.getBiomeRecipe().getMobLimit())) {
|
||||||
|
Loading…
Reference in New Issue
Block a user