ReikaKalseki / Reika_Mods_Issues

The issue tracker for all of my mods - RotaryCraft, its addons, ChromatiCraft, and everything else.
46 stars 14 forks source link

[DragonAPI v33a] NullPointerException in ReikaNBTHelper #3308

Open redelman opened 8 months ago

redelman commented 8 months ago

Might be ReactorCraft related as this started happening while building a fission reactor. Was shift+right-clicking some bedrock pipes onto boilers, then realized I didn't need to shift+right-click. Crash happened as soon as I placed a bedrock pipe without shift+right-click.

crash-2023-10-29_16.11.00-server.txt

EyeDeck commented 8 months ago

Here's some reasonably minimal and mostly reliable reproduction steps. Build a "reactor" like this: 2023-10-30_11 22 14 Then without sneak+right clicking, try placing some TileEntities, such as bedrock pipes, on the boilers. It usually takes a few tries, but eventually: image image Placing a bedrock pipe on the side of the upper boiler (first image) caused it to lose its NBT entirely. The boiler below it is unaffected.

For whatever reason, when this bug triggers in a larger reactor, this tends to affect every boiler on the same y level simultaneously, even ones that are several blocks away from the boiler that triggered the problem.

When this happens, the world is effectively corrupt until the world is loaded up in MCEdit, or whatever, and the bugged boilers are manually deleted. In SSP, loading will immediately crash; in SMP, the server will boot (while throwing exceptions about the bugged boilers) and will run even when the affected boilers are in force-loaded chunks, only crashing when a player logs in and gets near the area.