Diet (Fabric/Forge/Quilt)

Diet (Fabric/Forge/Quilt)

6M Downloads

[Bug]:

Boolyman opened this issue ยท 3 comments

commented

What happened?

I set up new groups and effects, but I am getting a crash when the world generates. The log references an issue with the diet-effects config. I have inlcluded the paste.gg of the log below. I'm thinking maybe I used an operation that wasn't appropriate for the effect attribute I was trying to increase, or something?

How do you trigger this bug?

...

Forge Version

Forge - 36.2.8

Mod Version

diet-forge-1.16.5-1.0.0.jar

Other Relevant Mod Versions

No response

Relevant Log Outputs

diet-effects file: https://paste.gg/p/anonymous/aced9e5798384e1184db6a0bae62f4ba

Log error: https://paste.gg/p/anonymous/d7dc3c91f64b49cd85ce4c51c5d8aeca

commented

I think this is because you have 4 instead of 4.0 in:

name = "minecraft:generic.attack_damage"
operation = "add"
amount = 4

Try changing that, re-test, and let me know the results.

I'll leave this issue open because I should probably add in some casting checks to avoid this issue happening.

commented

Yep, that seemed to fix the issue. Thank you.

commented

I just realized that it actually has to be this way because I'm not the one casting it, the config system is. Oh well, I'll just have to keep this in mind for the future in case other people have this issue.