Trinkets (Fabric)

Trinkets (Fabric)

22M Downloads

String comparison using == instead of equals()?

Mari023 opened this issue ยท 1 comments

commented

While implementing showing Trinkets slots on an Inventory, I stumbled upon String comparisons using == or !=
Is there a reason why you do this or is it just an oversight?
example

commented

Technically this is an oversight from some old code but also it's never actually going to cause any problems, since it'll always be comparing the same reference as it doesn't mutate strings