diff --git a/src/Common/com/bioxx/tfc/Entities/Mobs/EntityCowTFC.java b/src/Common/com/bioxx/tfc/Entities/Mobs/EntityCowTFC.java index f6658a215..0105c20ca 100644 --- a/src/Common/com/bioxx/tfc/Entities/Mobs/EntityCowTFC.java +++ b/src/Common/com/bioxx/tfc/Entities/Mobs/EntityCowTFC.java @@ -580,7 +580,7 @@ public void onLivingUpdate() if (TFC_Time.getTotalTicks() >= timeOfConception + pregnancyRequiredTime) { EntityCowTFC baby = (EntityCowTFC) createChildTFC(this); - baby.setLocationAndAngles(posX + (rand.nextFloat() - 0.5F) * 2F, posY, posZ + (rand.nextFloat() - 0.5F) * 2F, 0.0F, 0.0F); + baby.setLocationAndAngles(posX, posY, posZ, 0.0F, 0.0F); baby.rotationYawHead = baby.rotationYaw; baby.renderYawOffset = baby.rotationYaw; worldObj.spawnEntityInWorld(baby); diff --git a/src/Common/com/bioxx/tfc/Entities/Mobs/EntityDeer.java b/src/Common/com/bioxx/tfc/Entities/Mobs/EntityDeer.java index 5ddfec953..5e77c7b7d 100644 --- a/src/Common/com/bioxx/tfc/Entities/Mobs/EntityDeer.java +++ b/src/Common/com/bioxx/tfc/Entities/Mobs/EntityDeer.java @@ -563,7 +563,7 @@ public void onLivingUpdate() if(TFC_Time.getTotalTicks() >= timeOfConception + pregnancyRequiredTime) { EntityDeer baby = (EntityDeer) createChildTFC(this); - baby.setLocationAndAngles(posX + (rand.nextFloat() - 0.5F) * 2F, posY, posZ + (rand.nextFloat() - 0.5F) * 2F, 0.0F, 0.0F); + baby.setLocationAndAngles(posX, posY, posZ, 0.0F, 0.0F); baby.rotationYawHead = baby.rotationYaw; baby.renderYawOffset = baby.rotationYaw; worldObj.spawnEntityInWorld(baby); diff --git a/src/Common/com/bioxx/tfc/Entities/Mobs/EntityHorseTFC.java b/src/Common/com/bioxx/tfc/Entities/Mobs/EntityHorseTFC.java index 83a0b1116..4965ba9b6 100644 --- a/src/Common/com/bioxx/tfc/Entities/Mobs/EntityHorseTFC.java +++ b/src/Common/com/bioxx/tfc/Entities/Mobs/EntityHorseTFC.java @@ -839,7 +839,7 @@ public void onLivingUpdate() if (TFC_Time.getTotalTicks() >= timeOfConception + pregnancyRequiredTime) { EntityHorseTFC baby = (EntityHorseTFC) createChildTFC(this); - baby.setLocationAndAngles (posX + (rand.nextFloat() - 0.5F) * 2F, posY, posZ + (rand.nextFloat() - 0.5F) * 2F, 0.0F, 0.0F); + baby.setLocationAndAngles(posX, posY, posZ, 0.0F, 0.0F); baby.rotationYawHead = baby.rotationYaw; baby.renderYawOffset = baby.rotationYaw; worldObj.spawnEntityInWorld(baby); diff --git a/src/Common/com/bioxx/tfc/Entities/Mobs/EntityPigTFC.java b/src/Common/com/bioxx/tfc/Entities/Mobs/EntityPigTFC.java index a725c3576..ffea39601 100644 --- a/src/Common/com/bioxx/tfc/Entities/Mobs/EntityPigTFC.java +++ b/src/Common/com/bioxx/tfc/Entities/Mobs/EntityPigTFC.java @@ -557,7 +557,7 @@ public void onLivingUpdate() for(int i = 0; i < 8 + rand.nextInt(5);i++) { EntityPigTFC baby = (EntityPigTFC) createChildTFC(this); - baby.setLocationAndAngles (posX+(rand.nextFloat()-0.5F)*2F,posY,posZ+(rand.nextFloat()-0.5F)*2F, 0.0F, 0.0F); + baby.setLocationAndAngles(posX, posY, posZ, 0.0F, 0.0F); baby.rotationYawHead = baby.rotationYaw; baby.renderYawOffset = baby.rotationYaw; worldObj.spawnEntityInWorld(baby); diff --git a/src/Common/com/bioxx/tfc/Entities/Mobs/EntitySheepTFC.java b/src/Common/com/bioxx/tfc/Entities/Mobs/EntitySheepTFC.java index 10b6c2e89..f95625c0b 100644 --- a/src/Common/com/bioxx/tfc/Entities/Mobs/EntitySheepTFC.java +++ b/src/Common/com/bioxx/tfc/Entities/Mobs/EntitySheepTFC.java @@ -598,7 +598,7 @@ public void onLivingUpdate() ArrayList data = new ArrayList(); data.add(mateSizeMod); EntitySheepTFC baby = new EntitySheepTFC(worldObj, this, data); - baby.setLocationAndAngles(posX + (rand.nextFloat() - 0.5F) * 2F, posY, posZ + (rand.nextFloat() - 0.5F) * 2F, 0.0F, 0.0F); + baby.setLocationAndAngles(posX, posY, posZ, 0.0F, 0.0F); baby.rotationYawHead = baby.rotationYaw; baby.renderYawOffset = baby.rotationYaw; worldObj.spawnEntityInWorld(baby); diff --git a/src/Common/com/bioxx/tfc/Entities/Mobs/EntityWolfTFC.java b/src/Common/com/bioxx/tfc/Entities/Mobs/EntityWolfTFC.java index f0319b99f..735d9344a 100644 --- a/src/Common/com/bioxx/tfc/Entities/Mobs/EntityWolfTFC.java +++ b/src/Common/com/bioxx/tfc/Entities/Mobs/EntityWolfTFC.java @@ -709,7 +709,7 @@ else if (this.isAngry() && this.isSitting()) ArrayList data = new ArrayList(); data.add(mateSizeMod); EntityWolfTFC baby = (EntityWolfTFC) this.createChildTFC(this); - baby.setLocationAndAngles(posX + (rand.nextFloat() - 0.5F) * 2F, posY, posZ + (rand.nextFloat() - 0.5F) * 2F, 0.0F, 0.0F); + baby.setLocationAndAngles(posX, posY, posZ, 0.0F, 0.0F); baby.rotationYawHead = baby.rotationYaw; baby.renderYawOffset = baby.rotationYaw; baby.setAge(TFC_Time.getTotalDays()); diff --git a/src/Common/com/bioxx/tfc/TileEntities/TENestBox.java b/src/Common/com/bioxx/tfc/TileEntities/TENestBox.java index b3415982d..0575cd00f 100644 --- a/src/Common/com/bioxx/tfc/TileEntities/TENestBox.java +++ b/src/Common/com/bioxx/tfc/TileEntities/TENestBox.java @@ -221,8 +221,7 @@ public void updateEntity() { EntityChickenTFC chick = new EntityChickenTFC(worldObj, xCoord + 0.5, yCoord + 1, zCoord + 0.5, (NBTTagCompound) inventory[i].getTagCompound().getTag("Genes")); - Random rand = new Random(); - chick.setLocationAndAngles (xCoord + (rand.nextFloat() - 0.5F) * 2F, yCoord, zCoord + (rand.nextFloat() - 0.5F) * 2F, 0.0F, 0.0F); + chick.setLocationAndAngles(xCoord + 0.5, yCoord + 1, zCoord + 0.5, 0.0F, 0.0F); chick.rotationYawHead = chick.rotationYaw; chick.renderYawOffset = chick.rotationYaw; worldObj.spawnEntityInWorld(chick);