TheLMiffy1111 / JAOPCA

A mod that aims to add ore processing compatibilty to many mods. Inspired by AOBD.
MIT License
40 stars 36 forks source link

[1.12] OreEntry.thirdExtraName() returns second extra #212

Closed Krutoy242 closed 3 years ago

Krutoy242 commented 3 years ago

JAOPCA version: 2.2.8.105

OreEntry.thirdExtraName returns wrong result.

My config:

aluminium {
    S:extra=Iron
    S:extra2=Aquamarine
    S:extra3=Sapphire
    [...]
}

ZenScript code:

  val JA = mods.jaopca.JAOPCA.getOre("Aluminium");
  print("extraName:           "~JA.extraName);
  print("secondExtraName:     "~JA.secondExtraName);
  print("thirdExtraName:      "~JA.thirdExtraName);

Log output:

extraName:           Iron
secondExtraName:     Aquamarine
thirdExtraName:      Aquamarine

You can see here, secondExtraName and thirdExtraName is equals, but third should be Sapphire.

Second problem that (?)extra always returning same OreEntry.
Another prints in crafttweaker.log:

JA.extra.oreName:       Aluminium
JA.secondExtra.oreName: Aluminium
JA.thirdExtra.oreName:  Aluminium
TheLMiffy1111 commented 3 years ago

Should be fixed