mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
Adjusted ore spawn-rates
This commit is contained in:
parent
3ed959ed1c
commit
965cdc8165
@ -1,6 +1,7 @@
|
|||||||
package me.mrCookieSlime.Slimefun.GEO;
|
package me.mrCookieSlime.Slimefun.GEO;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
import java.util.concurrent.ThreadLocalRandom;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import org.bukkit.Chunk;
|
import org.bukkit.Chunk;
|
||||||
@ -43,7 +44,8 @@ public final class OreGenSystem {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return SlimefunPlugin.getUtilities().resource_configs.get(resource.getName()).getInt("spawn-rates." + biome.toString());
|
int supply = SlimefunPlugin.getUtilities().resource_configs.get(resource.getName()).getInt("spawn-rates." + biome.toString());
|
||||||
|
return supply > 0 ? (supply + ThreadLocalRandom.current().nextInt(3)): 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user