Added a check to ensure rosester rose-placing is on the server side
This commit is contained in:
parent
6f350e6781
commit
15ed38d5f1
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ public class EntityRosester extends EntityChicken
|
|||
int k = MathHelper.floor_double(this.posY);
|
||||
int l = MathHelper.floor_double(this.posZ + (double)((float)(i / 2 % 2 * 2 - 1) * 0.25F));
|
||||
|
||||
if (this.worldObj.isAirBlock(j, k, l) && this.worldObj.getBiomeGenForCoords(j, l).getFloatTemperature() > 0.3F && Block.plantRed.canPlaceBlockAt(this.worldObj, j, k, l) && this.worldObj.rand.nextInt(300) == 0)
|
||||
if (!this.worldObj.isRemote && this.worldObj.isAirBlock(j, k, l) && this.worldObj.getBiomeGenForCoords(j, l).getFloatTemperature() > 0.3F && Block.plantRed.canPlaceBlockAt(this.worldObj, j, k, l) && this.worldObj.rand.nextInt(300) == 0)
|
||||
{
|
||||
this.worldObj.setBlock(j, k, l, Block.plantRed.blockID);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue