Skip to content

Commit

Permalink
Seemingly fixes #312
Browse files Browse the repository at this point in the history
  • Loading branch information
Roadhog360 committed Sep 3, 2023
1 parent 4f69751 commit 27f59de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ public boolean attackEntityAsMob(Entity entityIn) {

public void onLivingUpdate() {
super.onLivingUpdate();
if (this.hasNectar() && this.getCropsGrownSincePollination() < 10 && this.rand.nextFloat() < 0.05F) {
if (worldObj.isRemote && this.hasNectar() && this.getCropsGrownSincePollination() < 10 && this.rand.nextFloat() < 0.05F) {
for (int i = 0; i < this.rand.nextInt(2) + 1; ++i) {
addParticle(this.worldObj, this.posX - (double) 0.3F, this.posX + (double) 0.3F, this.posZ - (double) 0.3F, posZ + (double) 0.3F, posY + this.height * 0.5F);
}
Expand Down

0 comments on commit 27f59de

Please sign in to comment.