Skip to content

Commit

Permalink
cheaty but oh well
Browse files Browse the repository at this point in the history
  • Loading branch information
AViewFromTheTop committed Oct 16, 2023
1 parent 6d46dd5 commit 0286632
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/java/net/frozenblock/wilderwild/entity/Crab.java
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ public void playAmbientSound() {
@Override
public boolean doHurtTarget(Entity target) {
this.level().broadcastEntityEvent(this, EntityEvent.START_ATTACKING);
this.playSound(RegisterSounds.ENTITY_CRAB_ATTACK, 10.0F, this.getVoicePitch());
this.playSound(RegisterSounds.ENTITY_CRAB_ATTACK, 1.0F, this.getVoicePitch());
return super.doHurtTarget(target);
}

Expand Down Expand Up @@ -382,7 +382,7 @@ public boolean isDiggingOrEmerging() {
}

public boolean isInvisibleWhileUnderground() {
return this.hasPose(Pose.DIGGING) && this.diggingTicks() > DIG_LENGTH_IN_TICKS;
return this.diggingTicks() > DIG_LENGTH_IN_TICKS;
}

@Contract("null->false")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public static Brain<?> makeBrain(@NotNull Crab crab, @NotNull Brain<Crab> brain)
initEmergeActivity(brain);
initDiggingActivity(brain);
initHideActivity(brain);
addIdleActivity(crab, brain);
addIdleActivity(brain);
addFightActivity(crab, brain);
brain.setCoreActivities(ImmutableSet.of(Activity.CORE));
brain.setDefaultActivity(Activity.IDLE);
Expand Down Expand Up @@ -134,7 +134,7 @@ private static void initHideActivity(@NotNull Brain<Crab> brain) {
);
}

private static void addIdleActivity(@NotNull Crab crab, @NotNull Brain<Crab> brain) {
private static void addIdleActivity(@NotNull Brain<Crab> brain) {
brain.addActivity(
Activity.IDLE,
10,
Expand Down

0 comments on commit 0286632

Please sign in to comment.