Skip to content

Commit

Permalink
⚡ Optimize fireflies
Browse files Browse the repository at this point in the history
  • Loading branch information
CallMeEchoCodes committed Mar 8, 2024
1 parent baa7ed2 commit c702265
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ public int getLightTicks() {
return this.dataTracker.get(LIGHT_TICKS);
}




@Override
protected void initDataTracker() {
Expand Down Expand Up @@ -153,7 +155,13 @@ protected float getActiveEyeHeight(EntityPose pose, EntityDimensions dimensions)
return dimensions.height * 0.5F;
}

@Override
public boolean collidesWith(Entity other) {
return false;
}

@Override
protected void tickCramming() { }

static class FlyRandomlyGoal extends Goal {
private final FireflyEntity firefly;
Expand Down

0 comments on commit c702265

Please sign in to comment.