forked from git-mirrors/GeyserConnect
Fix servers not loading properly
This commit is contained in:
parent
ef54d8c959
commit
c4b1faaaf6
1 changed files with 2 additions and 0 deletions
|
@ -25,6 +25,7 @@
|
||||||
|
|
||||||
package org.geysermc.connect.utils;
|
package org.geysermc.connect.utils;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.NoArgsConstructor;
|
import lombok.NoArgsConstructor;
|
||||||
|
@ -71,6 +72,7 @@ public class Server {
|
||||||
return name != null ? name : address + (getPort() != defaultPort() ? ":" + getPort() : "");
|
return name != null ? name : address + (getPort() != defaultPort() ? ":" + getPort() : "");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
public FormImage getFormImage() {
|
public FormImage getFormImage() {
|
||||||
if (imageUrl != null && !imageUrl.isEmpty()) {
|
if (imageUrl != null && !imageUrl.isEmpty()) {
|
||||||
return new FormImage(FormImage.FormImageType.URL, imageUrl);
|
return new FormImage(FormImage.FormImageType.URL, imageUrl);
|
||||||
|
|
Loading…
Add table
Reference in a new issue