Closed midorlo closed 4 years ago
it would be a good idea to seperate the two commits into seperate PRs since they work on different topics.
Also thanks for the NPE fix I needed that too.
Yeah that was by accident (Im not used to VS -.-). I guess you should reject the PR thenm and just commit the NPE yourself. It's just a single line after all :-)
The PR should be fine now
Sorry, this change is no longer relevant as of SDV 1.4. They made the hovered item a property in the menu itself so we no longer need reflection to get it and the null issue is handled.
typeof(ShopMenu).GetField("hoveredItem").GetValue()
will be null if there is no item hovered. Thereforenull.GetValue(menu)
was invoked.Opening any vendor's Window will provoke said NPE