From e4bcb9f38682f5c0faa72e9619e474184c431a62 Mon Sep 17 00:00:00 2001 From: RecursivePineapple Date: Sat, 18 Jan 2025 16:08:47 -0500 Subject: [PATCH] fix class load error in uplink --- .../common/building/AbstractBuildable.java | 1 - .../common/structure/StructureWrapperInstanceInfo.java | 5 +---- .../matter_manipulator/common/uplink/MTEMMUplink.java | 1 + 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/recursive_pineapple/matter_manipulator/common/building/AbstractBuildable.java b/src/main/java/com/recursive_pineapple/matter_manipulator/common/building/AbstractBuildable.java index 7d24b17..75fe593 100644 --- a/src/main/java/com/recursive_pineapple/matter_manipulator/common/building/AbstractBuildable.java +++ b/src/main/java/com/recursive_pineapple/matter_manipulator/common/building/AbstractBuildable.java @@ -47,7 +47,6 @@ import appeng.helpers.ICustomNameObject; import appeng.parts.AEBasePart; -import com.recursive_pineapple.matter_manipulator.MMMod; import com.recursive_pineapple.matter_manipulator.asm.Optional; import com.recursive_pineapple.matter_manipulator.common.items.manipulator.ItemMatterManipulator; import com.recursive_pineapple.matter_manipulator.common.items.manipulator.ItemMatterManipulator.ManipulatorTier; diff --git a/src/main/java/com/recursive_pineapple/matter_manipulator/common/structure/StructureWrapperInstanceInfo.java b/src/main/java/com/recursive_pineapple/matter_manipulator/common/structure/StructureWrapperInstanceInfo.java index 86ce979..828e442 100644 --- a/src/main/java/com/recursive_pineapple/matter_manipulator/common/structure/StructureWrapperInstanceInfo.java +++ b/src/main/java/com/recursive_pineapple/matter_manipulator/common/structure/StructureWrapperInstanceInfo.java @@ -11,7 +11,6 @@ import gregtech.api.metatileentity.implementations.MTEEnhancedMultiBlockBase; import com.gtnewhorizon.structurelib.structure.ISurvivalBuildEnvironment; -import com.gtnewhorizons.modularui.api.drawable.TextRenderer; import it.unimi.dsi.fastutil.chars.Char2IntArrayMap; @@ -27,8 +26,6 @@ public StructureWrapperInstanceInfo(StructureWrapper structure) { this.structure = structure; } - private static final int ERROR_WRAP_WIDTH = 180; - public String getErrors() { List lines = new ArrayList<>(); @@ -48,7 +45,7 @@ public String getErrors() { RESET ); - lines.addAll(TextRenderer.getFontRenderer().listFormattedStringToWidth(error, ERROR_WRAP_WIDTH)); + lines.add(error); } } diff --git a/src/main/java/com/recursive_pineapple/matter_manipulator/common/uplink/MTEMMUplink.java b/src/main/java/com/recursive_pineapple/matter_manipulator/common/uplink/MTEMMUplink.java index c24a2fb..feddbf6 100644 --- a/src/main/java/com/recursive_pineapple/matter_manipulator/common/uplink/MTEMMUplink.java +++ b/src/main/java/com/recursive_pineapple/matter_manipulator/common/uplink/MTEMMUplink.java @@ -186,6 +186,7 @@ protected void drawTexts(DynamicPositionedColumn screenElements, SlotWidget inve ), TextWidget.dynamicString(() -> structureInstanceInfo.getErrors()) .setTextAlignment(Alignment.CenterLeft) + .setMaxWidth(179) .setEnabled(structureInstanceInfo.hasErrors) ); }