Jump to content

AccessTransformer is not working in dev environment


Meegoo

Recommended Posts

Title says it.

When I add CoFHCore into mods folder, game crashes with this

java.lang.IllegalAccessError: tried to access field net.minecraft.world.World.collidingBoundingBoxes from class cofh.asmhooks.HooksCore

.

Quick google search showed that AT is not working.

 

Also, earlier I cloned ThaumicTinkerer repo, tried to launch it, aaaand... again. AT is not working. It can't even compile sources.

Tried to use deobf jar instead. Game launched, but crashed when I right clicked (or opened inventory, I don't remember) with IllegalAccessError.

 

PS. I'm using IntelliJ Idea with default launch configurations. Cloned ThaumicTinkerer from IDEA, imported it as new gradle module in my project and added it as a dependency. And it's not working.

 

PPS. I think i have to rebuild workspace. But where do I put AT config files, so forge can find them?

Link to comment
Share on other sites

Ok, it works. Thanks.

 

I have one more question. CoFH AT tries to make net.minecraft.entity.Entity#canTriggerWalking() public (by default it's protected).

It works, but classes that extend Entity.class still have canTriggerWalking() method as protected.

So ForgeGradle shows me this

E:\Development\Java\Minecraft\1.7.10\build\tmp\recompSrc\net\minecraft\entity\item\EntityTNTPrimed.java:46: error: canTriggerWalking() in EntityTNTPrimed cannot override canTriggerWalking() in Entity
    protected boolean canTriggerWalking()
                      ^
  attempting to assign weaker access privileges; was public

 

Is there any way to make AT change methods of subclasses as well as parent classes?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.