MrTJP / ProjectRed

Redstone Engineering
MIT License
474 stars 184 forks source link

1.18.2 Map corrupts when placing Generator-Cable-Battery-Cable-Frame Motor #1789

Closed al1-ce closed 1 year ago

al1-ce commented 1 year ago

Describe the bug As title

To Reproduce As title

Expected behavior No crash

Crash Log (Expires in one month)

MrTJP commented 1 year ago

Can I have some screenshots and more details? I am unable to reproduce by placing these components in various configurations. Did you do anything besides just placing them? Did you insert dust into the generator? etc

Screen Shot 2023-07-04 at 7 49 40 AM
al1-ce commented 1 year ago

Sorry, can't do screenshots, almost immediately restored from backup and kinda afraid to replicate bug

And about perquisites, battery was already charged for some amount and generator had dust in it

al1-ce commented 1 year ago

And I placed battery last

MrTJP commented 1 year ago

Caused by a negative power storage value in your battery box. No idea what causes this issue. I've applied a temporary fix which will reset the battery box's power storage value to zero when this issue is detected to prevent the crash. Unfortunately since I can't reproduce this, I can't yet fix the actual issue causing the storage value to become negative in the first place.