From d0ebd21989455a31e4030b91c6d92ad22bc218b9 Mon Sep 17 00:00:00 2001 From: IThundxr Date: Thu, 14 Mar 2024 23:13:40 -0400 Subject: [PATCH] Fix #4726 --- .../content/mobs/module/WraithModule.java | 40 +++++++++---------- 1 file changed, 19 insertions(+), 21 deletions(-) diff --git a/src/main/java/org/violetmoon/quark/content/mobs/module/WraithModule.java b/src/main/java/org/violetmoon/quark/content/mobs/module/WraithModule.java index 7894444f0e..e92196b1e9 100644 --- a/src/main/java/org/violetmoon/quark/content/mobs/module/WraithModule.java +++ b/src/main/java/org/violetmoon/quark/content/mobs/module/WraithModule.java @@ -1,8 +1,20 @@ package org.violetmoon.quark.content.mobs.module; -import java.util.List; -import java.util.stream.Collectors; - +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import net.minecraft.client.renderer.entity.EntityRenderers; +import net.minecraft.core.registries.Registries; +import net.minecraft.resources.ResourceLocation; +import net.minecraft.tags.BlockTags; +import net.minecraft.tags.TagKey; +import net.minecraft.world.entity.EntityType; +import net.minecraft.world.entity.MobCategory; +import net.minecraft.world.entity.SpawnPlacements.Type; +import net.minecraft.world.entity.monster.Monster; +import net.minecraft.world.item.Item; +import net.minecraft.world.level.block.Block; +import net.minecraft.world.level.levelgen.Heightmap.Types; +import net.minecraft.world.level.levelgen.structure.Structure; import org.violetmoon.quark.base.Quark; import org.violetmoon.quark.content.mobs.client.render.entity.SoulBeadRenderer; import org.violetmoon.quark.content.mobs.client.render.entity.WraithRenderer; @@ -23,24 +35,9 @@ import org.violetmoon.zeta.module.ZetaLoadModule; import org.violetmoon.zeta.module.ZetaModule; import org.violetmoon.zeta.util.Hint; -import org.violetmoon.zeta.world.EntitySpawnHandler; -import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Lists; - -import net.minecraft.client.renderer.entity.EntityRenderers; -import net.minecraft.core.registries.Registries; -import net.minecraft.resources.ResourceLocation; -import net.minecraft.tags.BlockTags; -import net.minecraft.tags.TagKey; -import net.minecraft.world.entity.EntityType; -import net.minecraft.world.entity.MobCategory; -import net.minecraft.world.entity.SpawnPlacements.Type; -import net.minecraft.world.entity.monster.Monster; -import net.minecraft.world.item.Item; -import net.minecraft.world.level.block.Block; -import net.minecraft.world.level.levelgen.Heightmap.Types; -import net.minecraft.world.level.levelgen.structure.Structure; +import java.util.List; +import java.util.stream.Collectors; @ZetaLoadModule(category = "mobs") public class WraithModule extends ZetaModule { @@ -79,7 +76,8 @@ public class WraithModule extends ZetaModule { public static TagKey soulBeadTargetTag; - public static List validWraithSounds; + // https://github.com/VazkiiMods/Quark/issues/4726 I don't know why... this should never happen but :shrug: + public static List validWraithSounds = wraithSounds.stream().filter((s) -> s.split("\\|").length == 3).collect(Collectors.toList()); @Hint Item soul_bead;