codetaylor / dropt-1.12

Flexible block drop strategies.
https://minecraft.curseforge.com/projects/dropt
Other
6 stars 2 forks source link

Couldn't reload and other issues #41

Closed Rongmario closed 5 years ago

Rongmario commented 6 years ago

Crash: https://pastebin.com/qPbRi7GN

My configs: https://pastebin.com/7VemBScL https://pastebin.com/AZNHCsiT https://pastebin.com/6Yb5jaVg

I've been getting really weird results with my configuration. Sometimes the drop works, sometimes the drop gets assigned to every single block broken, I'm at a loss right now...

codetaylor commented 6 years ago

Yeah, I don't know offhand.

Using the debug feature may shed some light on why a rule is not behaving as expected.

https://github.com/codetaylor/dropt/blob/master/DEBUG.md

codetaylor commented 6 years ago

Looks like the crash is because a null made it into an items array in one of your scripts.

This can happen with a trailing comma like so:

"items": [
  "minecraft:gravel",
]

I've put a null check in the item parser to eliminate the crash going forward.

Rongmario commented 6 years ago

Thanks. I tried having debug but nothing would print, was very weird.