Maybe fix broken inheritance
This commit is contained in:
parent
1fc0d77971
commit
7ee3116f29
@ -36,7 +36,6 @@ import java.util.Optional;
|
|||||||
*/
|
*/
|
||||||
@Getter
|
@Getter
|
||||||
@ToString
|
@ToString
|
||||||
@EqualsAndHashCode
|
|
||||||
@AllArgsConstructor(access = AccessLevel.PRIVATE)
|
@AllArgsConstructor(access = AccessLevel.PRIVATE)
|
||||||
public class LocalizedNode implements me.lucko.luckperms.api.Node {
|
public class LocalizedNode implements me.lucko.luckperms.api.Node {
|
||||||
public static LocalizedNode of(@NonNull me.lucko.luckperms.api.Node node, @NonNull String location) {
|
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 me.lucko.luckperms.api.Node node;
|
||||||
private final String location;
|
private final String location;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return node.hashCode();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object obj) {
|
||||||
|
return node.equals(obj);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getPermission() {
|
public String getPermission() {
|
||||||
return node.getPermission();
|
return node.getPermission();
|
||||||
|
Loading…
Reference in New Issue
Block a user