Let rabbits spawn from cocoon of cparice

This commit is contained in:
Vincent Lee committed 2016-03-07 20:46:05 -06:00
1 parent c74e77d9fc
commit e25cf207a6
1 file changed
+5 -1
@@ -18,6 +18,7 @@ import net.minecraft.entity.passive.EntityHorse;
import net.minecraft.entity.passive.EntityMooshroom;
import net.minecraft.entity.passive.EntityOcelot;
import net.minecraft.entity.passive.EntityPig;
import net.minecraft.entity.passive.EntityRabbit;
import net.minecraft.entity.passive.EntitySheep;
import net.minecraft.entity.passive.EntityVillager;
import net.minecraft.entity.passive.EntityWolf;
@@ -70,7 +71,7 @@ public class TileCocoon extends TileMod {
break;
}
} else {
int entityType = worldObj.rand.nextInt(4);
int entityType = worldObj.rand.nextInt(5);
switch(entityType) {
case 0:
entity = new EntitySheep(worldObj);
@@ -86,6 +87,9 @@ public class TileCocoon extends TileMod {
case 3:
entity = new EntityChicken(worldObj);
break;
case 4:
entity = new EntityRabbit(worldObj);
break;
}
}
}