Project MMO

Project MMO

10M Downloads

AutoBlock crash when world is invoked and null

Caltinor opened this issue ยท 1 comments

commented

Describe the bug
Observed while using Dynamic Trees. The hardness calculation used by the mod gets passed a null Level and crashes for an NPE.

Expected behavior
Don't crash

To Reproduce
Steps to reproduce the behavior:

  1. use a mod, like dynamic trees that uses the Level parameter in the hardness check
  2. use autovalues to determine configuration
  3. perform action related to autovalue property
  4. crash.

Versions:

  • Minecraft: 1.19 & 1.18
  • Loader: Forge
  • PMMO: rework

Additional context
crash-2022-07-17_20.08.32-client.txt

commented

I am going to backburner this for the time being. My reasoning is this applies specifically to DynamicTrees and their interaction with AutoValues. That specific interaction already makes the issue fairly niche. That nicheness is further compounded by the fact that this only applies in the context of AutoValues, which means that DynamicTrees becomes compatible with manual configuration.

Should more mods result in the same crash reason, I will readdress this issue.