szeweq / Flux

Repositiory for Flux Machinery (Energy and processing Mod for Minecraft) and Flux Library
https://szeweq.xyz/flux/home
MIT License
1 stars 2 forks source link

Crashed when using flux power cable with mekanism. #20

Closed IchigoGames closed 4 years ago

IchigoGames commented 4 years ago

https://pastebin.com/jzGxCg37

Steps to Reproduce:

  1. ...connect any gen flux or other to a mek engery cube and transfer power use flux power cables
  2. ...then brake with a pick and crash

Description of issue: reporting this to you and mek dev as i dont know whos issue it is but connecting mek to flux with flux cabbles crashed singeplayer and server only if using flux power cable.

szeweq commented 4 years ago

Even though Energy Cable is a ticking tile entity in this crash report, it is Mekanism fault.

Source of this problem: LazyOptional containing ForgeEnergyIntegration (from Mekanism) is not invalidated when Energy Cube is removed.

Flux removes invalid energy capabilities automatically, so no changes are needed here.

szeweq commented 4 years ago

I made a safety check to prevent crashes. It will be applied for Flux.