Closed quiqueck closed 3 years ago
I'll merge this rn as I want to push this fix out ASAP, but I noticed a couple of ways to make the code slightly cleaner, which I'll commit myself. Thank you for this! I gave myself a hard deadline and so did not do nearly enough testing it seems, haha.
It is really refreshing to see that code-quality is a real concern for this project! Makes the code-base real easy to understand.
Not sure why I didn't think of hasTag
tho :)
Replace
getOrCreateTag
withgetTag
and null-test when checking forDurabilityMultiplier
. This shouldprevent the generation of emptytag
-entries that prevent stacking.41 is fixed in my test. The code for the
DurabilityMultiplier
is executed (tested with diamond harpoon), but since I am not familiar with this new mechanic, I could have introduced a regression.