garbagemule / MobArena

MobArena plugin for Minecraft
GNU General Public License v3.0
189 stars 150 forks source link

Fix potential null indirections #774

Open tadhunt opened 9 months ago

tadhunt commented 9 months ago

Summary

Problem

Fix code paths that might result in null indirections

Solution

Action

tadhunt commented 8 months ago

Regarding refactoring, I can't commit to that as I don't really understand this code and am worried about breaking it in some non-obvious way.

Re: requests above, I didn't see anything directly actionable from your notes. Did you have something specific I should change?

Maybe we just add a comment to the changes in this PR that notes this needs a major refactoring?

garbagemule commented 8 months ago

Regarding refactoring, I can't commit to that as I don't really understand this code and am worried about breaking it in some non-obvious way.

For sure. Unless you have an irrational desire to refactor moldy spaghetti code that takes several passes just to kinda understand the overall idea of, this isn't something I'd realistically expect anyone to do, so no worries 😛

Re: requests above, I didn't see anything directly actionable from your notes. Did you have something specific I should change?

Maybe we just add a comment to the changes in this PR that notes this needs a major refactoring?

I think the most consistent thing to do here would be to close this PR, but move the change with the default branch in WaveParser over to the commit in #773 that already deals with fixing switch statements, since it fits really nicely in there. I'm more than happy to assist with wrangling git 😃

tadhunt commented 8 months ago

SGTM!