Fix warnings and stuff

This commit is contained in:
2022-07-22 18:37:15 +02:00
parent c827027e77
commit c7a470e391
18 changed files with 46 additions and 30 deletions

View File

@@ -196,7 +196,7 @@ public class PermissionsResolver {
public boolean equals(Object obj) {
return obj instanceof DataCacheKey o
&& Objects.equals(name, o.name)
&& Objects.equals(type, o.type)
&& type == o.type
&& dataType == o.dataType;
}
}
@@ -538,8 +538,8 @@ public class PermissionsResolver {
@Override
public boolean equals(Object obj) {
return obj instanceof PermCacheKey o
&& type == o.type
&& Objects.equals(name, o.name)
&& Objects.equals(type, o.type)
&& Objects.equals(permission, o.permission)
&& Objects.equals(server, o.server)
&& Objects.equals(world, o.world);