From a4d9712fd058b21dacdb7884b7bea4ee1c24e78a Mon Sep 17 00:00:00 2001 From: trinsdar <30245301+Trinsdar@users.noreply.github.com> Date: Sat, 16 Sep 2023 18:33:17 -0400 Subject: [PATCH] fixed stack overflow error --- common/src/main/java/muramasa/antimatter/util/Utils.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/muramasa/antimatter/util/Utils.java b/common/src/main/java/muramasa/antimatter/util/Utils.java index 36ca77766..991a63bc6 100644 --- a/common/src/main/java/muramasa/antimatter/util/Utils.java +++ b/common/src/main/java/muramasa/antimatter/util/Utils.java @@ -38,6 +38,8 @@ import net.minecraft.nbt.CompoundTag; import net.minecraft.network.FriendlyByteBuf; import net.minecraft.network.chat.MutableComponent; +import net.minecraft.network.chat.TextComponent; +import net.minecraft.network.chat.TranslatableComponent; import net.minecraft.server.level.ServerLevel; import net.minecraft.server.level.ServerPlayer; import net.minecraft.tags.BlockTags; @@ -572,11 +574,11 @@ public static InventoryChangeTrigger.TriggerInstance hasItem(ItemPredicate... pr // } public static MutableComponent translatable(String key, Object... objects){ - return Utils.translatable(key, objects); + return new TranslatableComponent(key, objects); } public static MutableComponent literal(String text){ - return Utils.literal(text); + return new TextComponent(text); } /**