Immersive-Tech icon indicating copy to clipboard operation
Immersive-Tech copied to clipboard

Unable to attach wire to redstone connectors after reloading game

Open calloatti opened this issue 6 years ago • 4 comments

https://github.com/BluSunrize/ImmersiveEngineering/issues/3204

calloatti avatar Sep 09 '18 23:09 calloatti

@FerroO2000

  1. 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).
  2. Remove the call to ITWireType#init (ImmersiveTech.java, last line of preInit). It calls WireType#init (because ITWireType#init does not exist) and messes up all IE wire types. Your type should already be initialized in the static initialization code.

malte0811 avatar Sep 10 '18 07:09 malte0811

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.

notpeelz avatar Oct 29 '19 11:10 notpeelz

Alternatively you can just update to the latest IE version, it will prevent the call causing issues and log a warning.

malte0811 avatar Oct 29 '19 11:10 malte0811

Oh good to know. :+1:

notpeelz avatar Oct 29 '19 11:10 notpeelz