Mekanism

Mekanism

111M Downloads

Attuning AE P2P interfaces

ruifung opened this issue ยท 9 comments

commented

I'm not sure if this is a issue on mekanism's side or AE2's side.

Mekanism is registering the itemstack with AE2 via IMC for P2P attunement.
But apparently when I rclick with the transmitter items, it places it down instead.. or adds its multipart part to the block.

commented

I have no clue- I've never even messed with attunement before. Your implementation looked correct, though.

commented

Yeah, I opened a similar issue on the AE2 github to see if they might have any ideas. Either I'm not registering it correctly, or its a multipart thing.

EDIT: I guess I'll take another stab at this.

commented

Well damn, FMLInterModComms.sendMessage is returning false, and AE2 doesn't even appear to be receiving the IMC messages. @.@

Figures, the MekanismHooks.hook() method is called from postInit. And by then its too late and AE2 doesn't even receive. So I had to make it register from init instead of from the hooks() method. - then it works like a charm.

Also is

public void addPulverizerRecipe(ItemStack input, ItemStack output, int energy)

even doing anything? IntelliJ is saying its never used.

commented

It was a joke. Sorry.

commented

Huh. I don't get the joke though.. Mind explaining? XD

commented

It had to do with your implementation pr. It didn't work thus my joke came into existence. Typically for me, if you see a ":P" at the end, I'm joking.

commented

Have to make things fun every once in a while... gets too serious otherwise.

commented

Rui, y u breaking stuff? :P

commented

I'm breaking stuff? Uh what?

For the record, I didn't modify where the MekanismHook.hook() method is called from.
I just modified where the IMC messages are sent to AE2 from, If you were misunderstanding what I wrote lol.