mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-28 05:35:26 +01:00
Maybe fix broken inheritance
This commit is contained in:
parent
1fc0d77971
commit
7ee3116f29
@ -36,7 +36,6 @@ import java.util.Optional;
|
||||
*/
|
||||
@Getter
|
||||
@ToString
|
||||
@EqualsAndHashCode
|
||||
@AllArgsConstructor(access = AccessLevel.PRIVATE)
|
||||
public class LocalizedNode implements me.lucko.luckperms.api.Node {
|
||||
public static LocalizedNode of(@NonNull me.lucko.luckperms.api.Node node, @NonNull String location) {
|
||||
@ -46,6 +45,16 @@ public class LocalizedNode implements me.lucko.luckperms.api.Node {
|
||||
private final me.lucko.luckperms.api.Node node;
|
||||
private final String location;
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return node.hashCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
return node.equals(obj);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPermission() {
|
||||
return node.getPermission();
|
||||
|
Loading…
Reference in New Issue
Block a user