NuclearCraft

NuclearCraft

31M Downloads

Crash w/ Wearable Backpacks & Hardcore Containers

nephatrine opened this issue ยท 2 comments

commented

I am getting random crashes every so often and it seems to be due to NuclearCraft and the backpacks from WearableBackpacks. I do have radiation_hardcore_containers enabled and assume that is the cause. I have not seen any other containers throw up this same error.

https://pastebin.com/sYHp1KzM

Ideally whatever interaction is causing this crash could be resolved, but as a stopgap is there a way we can maybe get a blacklist in the config to stop certain container entities from having the radiation mechanic and keep it on others? I can see such a feature being useful for modpacks even outside of preventing errors like this since some other mods might add containers that should conceptually be more shielded that a modpack maker might want to exclude from this feature.

  • forge-1.12.2-14.23.5.2838
  • NuclearCraft-2.18k-1.12.2
  • WearableBackpacks-1.12.2-3.1.4
commented

I think this is a Wearable Backpacks bug - it should not be null-pointering when NC asks for the capability.

It's happening because the tile returns this, which feeds a null world to this, which then causes a null-pointer here ;)

commented

You're right. Heck, I even noted that over a year ago.

I think the crash only occurs from loot backpacks that have been dropped by entities that spawned with them. So another option to fix this would be to disable the "Spawn Naturally" option in the entity settings.