Project Expansion

Project Expansion

4M Downloads

[BUG]: Game hangs when saving while collector is active

darthvader45 opened this issue ยท 3 comments

commented

Description
When you have a collector feeding a ProjectE Condenser (either mk1 or 2) and save the game, the game hangs.

Minecraft Version
1.20.1

ProjectExpansion Version
1.1.1 for 1.20.1

Forge Version
47.3.3

Reproduction Steps

  1. Place down a collector connected to a condenser from ProjectE (mine was mk2 for example, with a final collector stuck to it)
  2. Save world.
  3. Game hangs forever.

Crash Report/Logs
N/A

Other Mods

image

commented

I've finally found the source of this, it seems to be freaking out and getting into an infinite loop when reading a block while saving its data
I'm still not sure exactly why that's causing the problem, but it is what's causing the problem
So I'm just going to remove the protection of writing a value larger than our maximum which is causing that read (we already recheck this on load, and there are protections elsewhere) and call it good

if (getStoredEmcBigInteger().compareTo(getMaximumEmcBigInteger()) > 0) {
emc = getMaximumEmcBigInteger();
}

commented

Thanks, any fix that can remove this issue is a gamechanger.

commented

Fixed in 1.1.2