Geik-xyz / Farmer-v6

Introducing Farmer v6: Your virtual assistant for item collection on your island. Buy with in-game currency, add users, manage permissions, and track stock easily.
https://geik-xyz.github.io/Farmer-v6/
MIT License
38 stars 25 forks source link

change string comparison by reference to .equals call #94

Closed oguzcanyilmazlar closed 2 months ago

oguzcanyilmazlar commented 2 months ago

Not a performance issue. I've had this bug on a plugin before. If the string compared is created via constructor call (in this case it is) the result will not return true even if it is the same string because the String itself is a java object and == will compare by reference which will not be the same thus returning false.