mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-10-25 20:22:30 +00:00
Flower Butterfly Spawns inherits Forestry's configs constraints (#45)
This commit is contained in:
1 parent
1a6e6b3c2c
commit
5409309b36
1 file changed
+2
-1
@@ -42,6 +42,7 @@ import forestry.api.genetics.IPollinatable;
|
||||
import forestry.api.lepidopterology.IButterfly;
|
||||
import forestry.api.lepidopterology.IButterflyNursery;
|
||||
import forestry.lepidopterology.entities.EntityButterfly;
|
||||
import forestry.plugins.PluginLepidopterology;
|
||||
|
||||
public class TileEntityFlower extends TileEntity implements IPollinatable, IButterflyNursery {
|
||||
|
||||
@@ -456,7 +457,7 @@ public class TileEntityFlower extends TileEntity implements IPollinatable, IButt
|
||||
if (worldObj.rand.nextFloat() >= spawn.getGenome().getPrimary().getRarity() * 0.5f) {
|
||||
return;
|
||||
}
|
||||
if (worldObj.countEntities(EntityButterfly.class) > 100) {
|
||||
if (worldObj.countEntities(EntityButterfly.class) > PluginLepidopterology.spawnConstraint) {
|
||||
return;
|
||||
}
|
||||
if (!spawn.canSpawn(worldObj, x, y, z)) {
|
||||
|
||||
Reference in new issue
Block a user