Maybe fix broken inheritance

This commit is contained in:
Luck 2016-09-30 20:43:08 +01:00
parent 1fc0d77971
commit 7ee3116f29
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -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();