Industrial Foregoing

Industrial Foregoing

95M Downloads

[1.16] Laser Drill produces wrong ore from tag

camerondm9 opened this issue ยท 2 comments

commented

Industrial Foregoing Version: industrial-foregoing-1.16.5-3.2.14.6-14.jar
Titanium Version: titanium-1.16.5-3.2.8.4-10.jar

No crash

I'm playing with Thermal Foundation and Create.
I set [TagConfig].ITEM_PREFERENCE = ["minecraft", "thermal", "create"]
The laser drill is producing copper ore from Create, instead of from Thermal.

commented

Looks like the issue is this line: https://github.com/InnovativeOnlineIndustries/Industrial-Foregoing/blob/1.16/src/main/java/com/buuz135/industrial/block/resourceproduction/tile/OreLaserBaseTile.java#L150
The break statement only breaks the inner loop, and the outer loop continues checking the other modids.

commented

Seems like I can fix this by duplicating the list backwards:
[TagConfig].ITEM_PREFERENCE = ["minecraft", "thermal", "create", "thermal", "minecraft"]
Not ideal, but it works for now...