Immersive-Tech
Immersive-Tech copied to clipboard
Unable to attach wire to redstone connectors after reloading game
https://github.com/BluSunrize/ImmersiveEngineering/issues/3204
@FerroO2000
- It would be nice if there was a note somewhere telling people that the code available here does not correspond to the latest release (or anything later than that). I ran it through a decompiler (procyon) to get the latest code (the files are licensed as GNU GPL v3, so that should be fine).
- Remove the call to
ITWireType#init
(ImmersiveTech.java
, last line ofpreInit
). It callsWireType#init
(becauseITWireType#init
does not exist) and messes up all IE wire types. Your type should already be initialized in the static initialization code.
For anybody who's interested, I manually removed the IWireType#init
call by patching the bytecode by hand (I was too lazy to recompile it and don't have a Java/MC dev environment setup): ImmersiveTech.class (replace the corresponding .class
file in the ImmersiveTech jar)
Note: this only fixes this specific issue. The rest of the changes in f5952196288f0c93d57be52fb535539dff4bafb0 aren't included.
Alternatively you can just update to the latest IE version, it will prevent the call causing issues and log a warning.
Oh good to know. :+1: