Closed HoldYourWaffle closed 6 years ago
Thanks for your interest! However, in this PR please only change or add code relevant to the new feature.
Thought you might want that so I already changed those things in seperate commits. I've made a "cleanup" commit reverting everything not-function related.
That's better, but the formatting is still changed. When making a feature change the code style should be kept the same. Most notably in this PR, indention is 2 spaces, not tabs. Ideally the only changes the diff should show are the code improvements you added.
Whoops didn't even notice that. Must've been my auto-formatter. I've fixed it now 😄
I fixed the minor thingies, although I must say I think some things are a bit "unnecessary". (Double if block with same code in it, multi-line if block with only a return statement after it.)
You were completely right about the private fields though that was just an oversight from me 😄
Yeah, they were "unnecessary", I just prefer to keep format / cleanup changes separate from feature and logic changes. I am not saying one way is better than than the other. :)
Well I guess that makes sense 🤔
Cool, thanks! I will try to get around to building and uploading this soon, I haven't been working on these mods lately.
Since 50f53ce you need to have a sign in your (off)hand to edit a sign using rightclick. I made the required item configurable, even allowing for not requiring an item at all.