RFTools

RFTools

74M Downloads

Interaction with PneumaticCraft: Repressurized causes crash with RFTools Powercells

Flanks255 opened this issue ยท 3 comments

commented

MC: 1.12.2
Forge: 14.23.3.2673
RFTools: 7.33
MCJtyLib: 2.6.7

When using a Pneumatic Helmet, with the block tracker, with the rf block tracker enabled, looking at a RFTools powercell, with a link card in it causes the following NPE in RFTools:

https://pastebin.com/irxH3rsY

Related Pnc ticket where desht has some ideas: TeamPneumatic/pnc-repressurized#157

commented

PneumatiCraft is trying to access RF from client side. The RFTools powercells don't allow this. I can fix the crash but reading RF client-side is not going to work in any case so doing this is most likely also an issue on Pneumaticraft side

commented

Yeah, I don't need you to add clientside reading, but it would be nice if it at least didn't crash if you tried to read client side :)

I have some ideas on fixing this on the PneumaticCraft side anyway (custom energy level request/response packets, similar to how you handle Waila for the Powercell block - for reference it handles other mods' energy storage blocks by sending a packet asking the TE to send its NBT, and saving that NBT into the clientside TE, but that doesn't work with the Powercell).

commented

Next release of RFTools it will no longer crash if you do this client-side but instead always return 0