Someone-Else-Was-Taken / Periodic-Table-Reforged

A Collection of Unofficial ports of the CaffeineMC Mods alongside Iris.
GNU General Public License v3.0
45 stars 14 forks source link

Magnesium - placing a Wind Generator from Mekanism Generators may cause the game to crash #134

Open zdenek-biberle opened 2 years ago

zdenek-biberle commented 2 years ago

Hello,

as the title suggests, there seems to be some incompatibility with Mekanism Generators' Wind Generator and Magnesium. When I place it down, the game may simply crash. It may also crash when I load a world and there already is a Wind Generator present nearby.

The probability of it happening seems to vary. Once I had to put down about a hundred of them. Then, in a completely different world, only seven were needed. I've seen chunks where placing down a single one of them was almost guaranteed to cause the crash.

The crash report is here: crash-2021-12-06_22.13.41-client.txt

Looking at the stack trace, I think the offending line is this one in Mekanism: https://github.com/mekanism/Mekanism/blob/94614556d1c03bde2756124596b65bcc87474f0a/src/main/java/mekanism/common/block/BlockBounding.java#L281

Since this seems to be a more general class not immediately related to Wind Generators, I suspect that other entities may be affected as well, though I have yet to see that.

I have zero knowledge of Minecraft modding, so I can't tell if what Mekanism is doing here is okay or not. Please let me know if I should report this to Mekanism instead.

FuJa0815 commented 2 years ago

Can confirm

DatuStram commented 2 years ago

Same here.

LetterN commented 2 years ago

Same here, however it also stops rendering the "top chunk" side, so you can see through it. Still the same BlockBounding having caused a java.lang.NullPointerException