age-series / ElectricalAge

Electrical Age (ELN) is a Minecraft Mod offering the ability to perform large-scale in-game electrical simulations.
Other
65 stars 30 forks source link

Certin mechanical blocks crash game #288

Closed MsAlPatina closed 11 months ago

MsAlPatina commented 11 months ago

Some blocks like the Clutch or fixed shaft crash the game Trying to place anything described above will crash the game

latest.log crash-2023-07-11_15.53.08-server.txt

jrddunbr commented 11 months ago
Caused by: java.lang.NullPointerException
    at mods.eln.node.transparent.TransparentNode.getBlockMetadata(TransparentNode.kt:175) ~[TransparentNode.class:?]
    at mods.eln.node.transparent.TransparentNodeItem.placeBlockAt(TransparentNodeItem.kt:44) ~[TransparentNodeItem.class:?]
    at net.minecraft.item.ItemBlock.func_77648_a(ItemBlock.java:103) ~[abh.class:?]
    at net.minecraftforge.common.ForgeHooks.onPlaceItemIntoWorld(ForgeHooks.java:505) ~[ForgeHooks.class:?]
java.lang.NullPointerException: Ticking memory connection
    at mods.eln.node.transparent.TransparentNode.getBlockMetadata(TransparentNode.kt:175)
    at mods.eln.node.transparent.TransparentNodeItem.placeBlockAt(TransparentNodeItem.kt:44)
    at net.minecraft.item.ItemBlock.func_77648_a(ItemBlock.java:103)
    UCHIJAAAA   mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) 
    UCHIJAAAA   FML{7.10.99.99} [Forge Mod Loader] (forge-1.7.10-10.13.4.1614-1.7.10-universal.jar) 
    UCHIJAAAA   Forge{10.13.4.1614} [Minecraft Forge] (forge-1.7.10-10.13.4.1614-1.7.10-universal.jar) 
...
    UCHIJAAAA   Eln{1.21.3} [Electrical Age - jrddunbr's build] (Eln-1.21.3.jar) 
jrddunbr commented 11 months ago

This is caused by the change to the ValueWatchdog code. I'm looking at ways of fixing it. The issue manifests due to uninitialized values for the coordinates during initialization of the element.

jrddunbr commented 11 months ago

Fixed by 8577ea8