Fix servers not loading properly

This commit is contained in:
rtm516 2020-12-12 19:15:47 +00:00
parent ef54d8c959
commit c4b1faaaf6
No known key found for this signature in database
GPG key ID: 331715B8B007C67A

View file

@ -25,6 +25,7 @@
package org.geysermc.connect.utils;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
@ -71,6 +72,7 @@ public class Server {
return name != null ? name : address + (getPort() != defaultPort() ? ":" + getPort() : "");
}
@JsonIgnore
public FormImage getFormImage() {
if (imageUrl != null && !imageUrl.isEmpty()) {
return new FormImage(FormImage.FormImageType.URL, imageUrl);