Skip to content

Commit

Permalink
Merge branch 'master' into 1.21.2
Browse files Browse the repository at this point in the history
  • Loading branch information
AViewFromTheTop committed Feb 20, 2025
2 parents fd57e30 + d37baef commit 6a07f3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/net/frozenblock/wilderwild/entity/Penguin.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import com.google.common.collect.ImmutableList;
import com.mojang.serialization.Dynamic;
import java.util.Arrays;
import java.util.stream.Stream;
import java.util.List;
import net.frozenblock.wilderwild.config.WWEntityConfig;
import net.frozenblock.wilderwild.entity.ai.penguin.PenguinAi;
import net.frozenblock.wilderwild.registry.WWEntityTypes;
Expand Down Expand Up @@ -71,7 +71,7 @@
import org.jetbrains.annotations.Nullable;

public class Penguin extends Animal {
private static final Stream<String> VALID_LINUX_NAMES = ImmutableList.of("Linux", "Tux", "Treetrain", "Treetrain1").stream();
private static final List<String> VALID_LINUX_NAMES = ImmutableList.of("Linux", "Tux", "Treetrain", "Treetrain1");
public static final double BOAT_BOOST_SPEED = 1.7D;
public AnimationState layDownAnimationState = new AnimationState();
public AnimationState standUpAnimationState = new AnimationState();
Expand Down Expand Up @@ -346,6 +346,6 @@ public void readAdditionalSaveData(CompoundTag compoundTag) {

public boolean isLinux() {
String string = ChatFormatting.stripFormatting(this.getName().getString());
return VALID_LINUX_NAMES.anyMatch(string::equalsIgnoreCase);
return VALID_LINUX_NAMES.stream().anyMatch(string::equalsIgnoreCase);
}
}

0 comments on commit 6a07f3e

Please sign in to comment.