Skip to content

Commit

Permalink
Merge pull request #100 from GameHerobrine/master
Browse files Browse the repository at this point in the history
fixed lags caused by ghasts in high distances
  • Loading branch information
moderatorman authored Aug 9, 2024
2 parents cc77c44 + c0f46cf commit 8c3fc96
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/net/minecraft/server/EntityGhast.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ protected void c_() {
this.b = this.locX + (double) ((this.random.nextFloat() * 2.0F - 1.0F) * 16.0F);
this.c = this.locY + (double) ((this.random.nextFloat() * 2.0F - 1.0F) * 16.0F);
this.d = this.locZ + (double) ((this.random.nextFloat() * 2.0F - 1.0F) * 16.0F);
}

if (this.a-- <= 0) {
} else if (this.a-- <= 0) {
this.a += this.random.nextInt(5) + 2;
if (this.a(this.b, this.c, this.d, d3)) {
this.motX += d0 / d3 * 0.1D;
Expand Down

0 comments on commit 8c3fc96

Please sign in to comment.