Practical Logistics 2

Practical Logistics 2

15M Downloads

[1.12.2] Crafttweaker integration broke again

MineWitherMC opened this issue ยท 4 comments

commented

Hello!
I'm trying to add CT recipe for Forging Hammer like following:

import mods.logistics.hammer as Forging;
Forging.addRecipe(ingot_tempered * 8, item_elemental_core);

(these are global variables) and I get this error:

ERROR: no such member: hammer

I'm using Forge-14.23.4.2759, CraftTweaker2-1.12.2-4.1.9, SonarCore-1.12.2-5.0.16-16 and practicallogistics2-1.12.2-3.0.4.

commented

I'm getting [CHAT] ERROR: system: hammer is already defined in that package.

This looks to be caused by the Hammer class being registered twice to CraftTweaker.
Prior to 3.0.5, the issue was as mentioned above, and was caused by the hammer class being registered far too late for anything done in CraftTweaker. Adding the @ZenRegister annotation will register it at the proper time now, but its also being registered later during postLoad

CraftTweakerIntegration.init();

I would recommend removing

if (Loader.isModLoaded("crafttweaker") || Loader.isModLoaded("crafttweaker2")) {
CraftTweakerIntegration.init();
logger.info("CraftTweaker2 integration was loaded");
}
as well as

commented

This just started to show up on me as well even on the new version of forge

@SonarSonic

commented

Hey

Im also having this issue with "[CHAT] ERROR: system: hammer is already defined in that package"

commented

Fixed in dev