GregTechCEu / GregTech-Modern

GregTech CE Unofficial for modern versions
GNU Lesser General Public License v3.0
295 stars 175 forks source link

IO Covers are unable to have their mode changed, also causes crash #2356

Closed teh-banana closed 1 week ago

teh-banana commented 1 week ago

Checked for existing issues

Tested latest version

GregTech CEu Version

v1.5.1

Minecraft Version

1.20.1

Recipe Viewer Installed

EMI

Environment

Singleplayer

Cross-Mod Interaction

No

Other Installed Mods

Jade, EMI

Expected Behavior

Clicking the button to swap from export, to import should save

Actual Behavior

IO Covers reset to export when the GUI is closed

Steps to Reproduce

  1. Place IO Cover on machine
  2. Open settings via screwdriver
  3. Change Export to Import
  4. Close UI
  5. Reopen
  6. :shockedpikachu:

Additional Information

The game will crash when you try and access an IO cover settings from a machine GUI. I have attached the crash report associated with this.

---- Minecraft Crash Report ----
// Hi. I'm Minecraft, and I'm a crashaholic.

Time: 2024-11-15 09:51:47
Description: Ticking entity

java.lang.NullPointerException: Cannot invoke "java.util.function.Supplier.get()" because "this.textSupplier" is null
    at com.lowdragmc.lowdraglib.gui.widget.LabelWidget.detectAndSendChanges(LabelWidget.java:132) ~[ldlib-forge-1.20.1-1.0.31.jar%23176!/:?] {re:classloading}
    at com.lowdragmc.lowdraglib.gui.widget.WidgetGroup.detectAndSendChanges(WidgetGroup.java:487) ~[ldlib-forge-1.20.1-1.0.31.jar%23176!/:?] {re:classloading}
    at com.lowdragmc.lowdraglib.gui.widget.WidgetGroup.detectAndSendChanges(WidgetGroup.java:487) ~[ldlib-forge-1.20.1-1.0.31.jar%23176!/:?] {re:classloading}
    at com.lowdragmc.lowdraglib.gui.widget.WidgetGroup.detectAndSendChanges(WidgetGroup.java:487) ~[ldlib-forge-1.20.1-1.0.31.jar%23176!/:?] {re:classloading}
    at com.lowdragmc.lowdraglib.gui.widget.WidgetGroup.detectAndSendChanges(WidgetGroup.java:487) ~[ldlib-forge-1.20.1-1.0.31.jar%23176!/:?] {re:classloading}
    at com.gregtechceu.gtceu.api.gui.fancy.ConfiguratorPanel$Tab.detectAndSendChanges(ConfiguratorPanel.java:237) ~[gtceu-1.20.1-1.5.1.jar%23160!/:1.5.1] {re:classloading}
    at com.lowdragmc.lowdraglib.gui.widget.WidgetGroup.detectAndSendChanges(WidgetGroup.java:487) ~[ldlib-forge-1.20.1-1.0.31.jar%23176!/:?] {re:classloading}
    at com.lowdragmc.lowdraglib.gui.widget.WidgetGroup.detectAndSendChanges(WidgetGroup.java:487) ~[ldlib-forge-1.20.1-1.0.31.jar%23176!/:?] {re:classloading}
    at com.lowdragmc.lowdraglib.gui.widget.WidgetGroup.detectAndSendChanges(WidgetGroup.java:487) ~[ldlib-forge-1.20.1-1.0.31.jar%23176!/:?] {re:classloading}
    at com.lowdragmc.lowdraglib.gui.modular.ModularUIContainer.m_38946_(ModularUIContainer.java:98) ~[ldlib-forge-1.20.1-1.0.31.jar%23176!/:?] {re:classloading}
    at net.minecraft.server.level.ServerPlayer.m_8119_(ServerPlayer.java:435) ~[client-1.20.1-20230612.114412-srg.jar%23162!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:ldlib-common.mixins.json:accessor.ServerPlayerAccessor,pl:mixin:A}
    at net.minecraft.server.level.ServerLevel.m_8647_(ServerLevel.java:693) ~[client-1.20.1-20230612.114412-srg.jar%23162!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
    at net.minecraft.world.level.Level.m_46653_(Level.java:479) ~[client-1.20.1-20230612.114412-srg.jar%23162!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:gtceu.mixins.json:LevelMixin,pl:mixin:A}
    at net.minecraft.server.level.ServerLevel.m_184063_(ServerLevel.java:343) ~[client-1.20.1-20230612.114412-srg.jar%23162!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
    at net.minecraft.world.level.entity.EntityTickList.m_156910_(EntityTickList.java:54) ~[client-1.20.1-20230612.114412-srg.jar%23162!/:?] {re:classloading}
    at net.minecraft.server.level.ServerLevel.m_8793_(ServerLevel.java:323) ~[client-1.20.1-20230612.114412-srg.jar%23162!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
    at net.minecraft.server.MinecraftServer.m_5703_(MinecraftServer.java:893) ~[client-1.20.1-20230612.114412-srg.jar%23162!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
    at net.minecraft.server.MinecraftServer.m_5705_(MinecraftServer.java:814) ~[client-1.20.1-20230612.114412-srg.jar%23162!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
    at net.minecraft.client.server.IntegratedServer.m_5705_(IntegratedServer.java:89) ~[client-1.20.1-20230612.114412-srg.jar%23162!/:?] {re:classloading,pl:runtimedistcleaner:A}
    at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:661) ~[client-1.20.1-20230612.114412-srg.jar%23162!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
    at net.minecraft.server.MinecraftServer.m_206580_(MinecraftServer.java:251) ~[client-1.20.1-20230612.114412-srg.jar%23162!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
    at java.lang.Thread.run(Thread.java:840) ~[?:?] {re:mixin}

A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Server thread
Suspected Mods: 
    LowDragLib (ldlib), Version: 1.0.31
        at TRANSFORMER/ldlib@1.0.31/com.lowdragmc.lowdraglib.gui.widget.LabelWidget.detectAndSendChanges(LabelWidget.java:132)

    GregTech (gtceu), Version: 1.5.1
        Issue tracker URL: https://github.com/GregTechCEu/GregTech-Modern/issues/
        at TRANSFORMER/gtceu@1.5.1/com.gregtechceu.gtceu.api.gui.fancy.ConfiguratorPanel$Tab.detectAndSendChanges(ConfiguratorPanel.java:237)
Stacktrace:
    at com.lowdragmc.lowdraglib.gui.widget.LabelWidget.detectAndSendChanges(LabelWidget.java:132) ~[ldlib-forge-1.20.1-1.0.31.jar%23176!/:?] {re:classloading}
    at com.lowdragmc.lowdraglib.gui.widget.WidgetGroup.detectAndSendChanges(WidgetGroup.java:487) ~[ldlib-forge-1.20.1-1.0.31.jar%23176!/:?] {re:classloading}
    at com.lowdragmc.lowdraglib.gui.widget.WidgetGroup.detectAndSendChanges(WidgetGroup.java:487) ~[ldlib-forge-1.20.1-1.0.31.jar%23176!/:?] {re:classloading}
    at com.lowdragmc.lowdraglib.gui.widget.WidgetGroup.detectAndSendChanges(WidgetGroup.java:487) ~[ldlib-forge-1.20.1-1.0.31.jar%23176!/:?] {re:classloading}
    at com.lowdragmc.lowdraglib.gui.widget.WidgetGroup.detectAndSendChanges(WidgetGroup.java:487) ~[ldlib-forge-1.20.1-1.0.31.jar%23176!/:?] {re:classloading}
    at com.gregtechceu.gtceu.api.gui.fancy.ConfiguratorPanel$Tab.detectAndSendChanges(ConfiguratorPanel.java:237) ~[gtceu-1.20.1-1.5.1.jar%23160!/:1.5.1] {re:classloading}
    at com.lowdragmc.lowdraglib.gui.widget.WidgetGroup.detectAndSendChanges(WidgetGroup.java:487) ~[ldlib-forge-1.20.1-1.0.31.jar%23176!/:?] {re:classloading}
    at com.lowdragmc.lowdraglib.gui.widget.WidgetGroup.detectAndSendChanges(WidgetGroup.java:487) ~[ldlib-forge-1.20.1-1.0.31.jar%23176!/:?] {re:classloading}
    at com.lowdragmc.lowdraglib.gui.widget.WidgetGroup.detectAndSendChanges(WidgetGroup.java:487) ~[ldlib-forge-1.20.1-1.0.31.jar%23176!/:?] {re:classloading}
    at com.lowdragmc.lowdraglib.gui.modular.ModularUIContainer.m_38946_(ModularUIContainer.java:98) ~[ldlib-forge-1.20.1-1.0.31.jar%23176!/:?] {re:classloading}
    at net.minecraft.server.level.ServerPlayer.m_8119_(ServerPlayer.java:435) ~[client-1.20.1-20230612.114412-srg.jar%23162!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:ldlib-common.mixins.json:accessor.ServerPlayerAccessor,pl:mixin:A}
    at net.minecraft.server.level.ServerLevel.m_8647_(ServerLevel.java:693) ~[client-1.20.1-20230612.114412-srg.jar%23162!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
    at net.minecraft.world.level.Level.m_46653_(Level.java:479) ~[client-1.20.1-20230612.114412-srg.jar%23162!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:gtceu.mixins.json:LevelMixin,pl:mixin:A}
    at net.minecraft.server.level.ServerLevel.m_184063_(ServerLevel.java:343) ~[client-1.20.1-20230612.114412-srg.jar%23162!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
    at net.minecraft.world.level.entity.EntityTickList.m_156910_(EntityTickList.java:54) ~[client-1.20.1-20230612.114412-srg.jar%23162!/:?] {re:classloading}
    at net.minecraft.server.level.ServerLevel.m_8793_(ServerLevel.java:323) ~[client-1.20.1-20230612.114412-srg.jar%23162!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
-- Entity being ticked --
Details:
    Entity Type: minecraft:player (net.minecraft.server.level.ServerPlayer)
    Entity ID: 1
    Entity Name: TehBanana
    Entity's Exact location: -33.37, 56.00, 43.92
    Entity's Block location: World: (-34,56,43), Section: (at 14,8,11 in -3,3,2; chunk contains blocks -48,-64,32 to -33,319,47), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,-64,0 to -1,319,511)
    Entity's Momentum: 0.00, -0.08, 0.00
    Entity's Passengers: []
    Entity's Vehicle: null
Stacktrace:
    at net.minecraft.world.level.Level.m_46653_(Level.java:479) ~[client-1.20.1-20230612.114412-srg.jar%23162!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:gtceu.mixins.json:LevelMixin,pl:mixin:A}
    at net.minecraft.server.level.ServerLevel.m_184063_(ServerLevel.java:343) ~[client-1.20.1-20230612.114412-srg.jar%23162!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
    at net.minecraft.world.level.entity.EntityTickList.m_156910_(EntityTickList.java:54) ~[client-1.20.1-20230612.114412-srg.jar%23162!/:?] {re:classloading}
    at net.minecraft.server.level.ServerLevel.m_8793_(ServerLevel.java:323) ~[client-1.20.1-20230612.114412-srg.jar%23162!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
    at net.minecraft.server.MinecraftServer.m_5703_(MinecraftServer.java:893) ~[client-1.20.1-20230612.114412-srg.jar%23162!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
    at net.minecraft.server.MinecraftServer.m_5705_(MinecraftServer.java:814) ~[client-1.20.1-20230612.114412-srg.jar%23162!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
    at net.minecraft.client.server.IntegratedServer.m_5705_(IntegratedServer.java:89) ~[client-1.20.1-20230612.114412-srg.jar%23162!/:?] {re:classloading,pl:runtimedistcleaner:A}
    at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:661) ~[client-1.20.1-20230612.114412-srg.jar%23162!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
    at net.minecraft.server.MinecraftServer.m_206580_(MinecraftServer.java:251) ~[client-1.20.1-20230612.114412-srg.jar%23162!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
    at java.lang.Thread.run(Thread.java:840) ~[?:?] {re:mixin}

-- Affected level --
Details:
    All players: 1 total; [ServerPlayer['TehBanana'/1, l='ServerLevel[creative]', x=-33.37, y=56.00, z=43.92]]
    Chunk stats: 2809
    Level dimension: minecraft:overworld
    Level spawn location: World: (0,56,0), Section: (at 0,8,0 in 0,3,0; chunk contains blocks 0,-64,0 to 15,319,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,-64,0 to 511,319,511)
    Level time: 251823 game time, 6271 day time
    Level name: creative
    Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
    Level weather: Rain time: 27938 (now: false), thunder time: 93 (now: false)
    Known server brands: forge
    Removed feature flags: 
    Level was modded: true
    Level storage version: 0x04ABD - Anvil
Stacktrace:
    at net.minecraft.server.MinecraftServer.m_5703_(MinecraftServer.java:893) ~[client-1.20.1-20230612.114412-srg.jar%23162!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
    at net.minecraft.server.MinecraftServer.m_5705_(MinecraftServer.java:814) ~[client-1.20.1-20230612.114412-srg.jar%23162!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
    at net.minecraft.client.server.IntegratedServer.m_5705_(IntegratedServer.java:89) ~[client-1.20.1-20230612.114412-srg.jar%23162!/:?] {re:classloading,pl:runtimedistcleaner:A}
    at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:661) ~[client-1.20.1-20230612.114412-srg.jar%23162!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
    at net.minecraft.server.MinecraftServer.m_206580_(MinecraftServer.java:251) ~[client-1.20.1-20230612.114412-srg.jar%23162!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
    at java.lang.Thread.run(Thread.java:840) ~[?:?] {re:mixin}

-- System Details --
Details:
    Minecraft Version: 1.20.1
    Minecraft Version ID: 1.20.1
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 17.0.13, Eclipse Adoptium
    Java VM Version: OpenJDK 64-Bit Server VM (mixed mode, sharing), Eclipse Adoptium
    Memory: 1419145056 bytes (1353 MiB) / 4294967296 bytes (4096 MiB) up to 8589934592 bytes (8192 MiB)
    CPUs: 12
    Processor Vendor: AuthenticAMD
    Processor Name: AMD Ryzen 5 5600X 6-Core Processor             
    Identifier: AuthenticAMD Family 25 Model 33 Stepping 0
    Microarchitecture: Zen 3
    Frequency (GHz): 3.69
    Number of physical packages: 1
    Number of physical CPUs: 6
    Number of logical CPUs: 12
    Graphics card #0 name: AMD Radeon RX 6700 XT
    Graphics card #0 vendor: Advanced Micro Devices, Inc. (0x1002)
    Graphics card #0 VRAM (MB): 4095.00
    Graphics card #0 deviceId: 0x73df
    Graphics card #0 versionInfo: DriverVersion=32.0.11037.4004
    Memory slot #0 capacity (MB): 16384.00
    Memory slot #0 clockSpeed (GHz): 3.60
    Memory slot #0 type: DDR4
    Memory slot #1 capacity (MB): 16384.00
    Memory slot #1 clockSpeed (GHz): 3.60
    Memory slot #1 type: DDR4
    Memory slot #2 capacity (MB): 16384.00
    Memory slot #2 clockSpeed (GHz): 3.60
    Memory slot #2 type: DDR4
    Memory slot #3 capacity (MB): 16384.00
    Memory slot #3 clockSpeed (GHz): 3.60
    Memory slot #3 type: DDR4
    Virtual memory max (MB): 69558.52
    Virtual memory used (MB): 41873.29
    Swap memory total (MB): 4096.00
    Swap memory used (MB): 0.00
    JVM Flags: 3 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xms4096m -Xmx8192m
    Server Running: true
    Player Count: 1 / 8; [ServerPlayer['TehBanana'/1, l='ServerLevel[creative]', x=-33.37, y=56.00, z=43.92]]
    Data Packs: vanilla, mod:emi (incompatible), mod:mixinextras (incompatible), mod:configuration, mod:forge, mod:jade (incompatible), mod:ldlib (incompatible), mod:gtceu, gtceu:dynamic_data
    Enabled Feature Flags: minecraft:vanilla
    World Generation: Stable
    Type: Integrated Server (map_client.txt)
    Is Modded: Definitely; Client brand changed to 'forge'; Server brand changed to 'forge'
    Launched Version: 1.20.1
    ModLauncher: 10.0.9+10.0.9+main.dcd20f30
    ModLauncher launch target: forgeclient
    ModLauncher naming: srg
    ModLauncher services: 
        mixin-0.8.5.jar mixin PLUGINSERVICE 
        eventbus-6.0.5.jar eventbus PLUGINSERVICE 
        fmlloader-1.20.1-47.3.0.jar slf4jfixer PLUGINSERVICE 
        fmlloader-1.20.1-47.3.0.jar object_holder_definalize PLUGINSERVICE 
        fmlloader-1.20.1-47.3.0.jar runtime_enum_extender PLUGINSERVICE 
        fmlloader-1.20.1-47.3.0.jar capability_token_subclass PLUGINSERVICE 
        accesstransformers-8.0.4.jar accesstransformer PLUGINSERVICE 
        fmlloader-1.20.1-47.3.0.jar runtimedistcleaner PLUGINSERVICE 
        modlauncher-10.0.9.jar mixin TRANSFORMATIONSERVICE 
        modlauncher-10.0.9.jar fml TRANSFORMATIONSERVICE 
    FML Language Providers: 
        minecraft@1.0
        lowcodefml@null
        javafml@null
    Mod List: 
        client-1.20.1-20230612.114412-srg.jar             |Minecraft                     |minecraft                     |1.20.1              |DONE      |Manifest: a1:d4:5e:04:4f:d3:d6:e0:7b:37:97:cf:77:b0:de:ad:4a:47:ce:8c:96:49:5f:0a:cf:8c:ae:b2:6d:4b:8a:3f
        emi-1.1.18+1.20.1+forge.jar                       |EMI                           |emi                           |1.1.18+1.20.1+forge |DONE      |Manifest: NOSIGNATURE
        mixinextras-forge-0.3.5.jar                       |MixinExtras                   |mixinextras                   |0.3.5               |DONE      |Manifest: NOSIGNATURE
        configuration-forge-1.20.1-2.2.0.jar              |Configuration                 |configuration                 |2.2.0               |DONE      |Manifest: NOSIGNATURE
        forge-1.20.1-47.3.0-universal.jar                 |Forge                         |forge                         |47.3.0              |DONE      |Manifest: 84:ce:76:e8:45:35:e4:0e:63:86:df:47:59:80:0f:67:6c:c1:5f:6e:5f:4d:b3:54:47:1a:9f:7f:ed:5e:f2:90
        Jade-1.20.1-Forge-11.12.2.jar                     |Jade                          |jade                          |11.12.2+forge       |DONE      |Manifest: NOSIGNATURE
        ldlib-forge-1.20.1-1.0.31.jar                     |LowDragLib                    |ldlib                         |1.0.31              |DONE      |Manifest: NOSIGNATURE
        gtceu-1.20.1-1.5.1.jar                            |GregTech                      |gtceu                         |1.5.1               |DONE      |Manifest: NOSIGNATURE
    Crash Report UUID: 2b6c60b0-de0b-4a25-9383-27b0426db4c3
    FML: 47.3
    Forge: net.minecraftforge:47.3.0