forked from BLOCKFANTASY/LOOHP-Limbo
Polish resource pack support
This commit is contained in:
@@ -50,10 +50,10 @@ public class ServerProperties {
|
||||
private double ticksPerSecond;
|
||||
private boolean handshakeVerbose;
|
||||
|
||||
private String resourcePackSHA;
|
||||
private String resourcePackSHA1;
|
||||
private String resourcePackLink;
|
||||
private boolean resourcePackRequired;
|
||||
private String resourcePackPrompt;
|
||||
private String resourcePackPromptJson;
|
||||
|
||||
Optional<BufferedImage> favicon;
|
||||
|
||||
@@ -129,9 +129,9 @@ public class ServerProperties {
|
||||
handshakeVerbose = Boolean.parseBoolean(prop.getProperty("handshake-verbose"));
|
||||
|
||||
resourcePackLink = prop.getProperty("resource-pack");
|
||||
resourcePackSHA = prop.getProperty("resource-pack-sha1");
|
||||
resourcePackSHA1 = prop.getProperty("resource-pack-sha1");
|
||||
resourcePackRequired = Boolean.parseBoolean(prop.getProperty("required-resource-pack"));
|
||||
resourcePackPrompt = prop.getProperty("resource-pack-prompt");
|
||||
resourcePackPromptJson = prop.getProperty("resource-pack-prompt");
|
||||
|
||||
File png = new File("server-icon.png");
|
||||
if (png.exists()) {
|
||||
@@ -257,16 +257,16 @@ public class ServerProperties {
|
||||
return resourcePackLink;
|
||||
}
|
||||
|
||||
public String getResourcePackSHA() {
|
||||
return resourcePackSHA;
|
||||
public String getResourcePackSHA1() {
|
||||
return resourcePackSHA1;
|
||||
}
|
||||
|
||||
public boolean getResourcePackRequired() {
|
||||
return resourcePackRequired;
|
||||
}
|
||||
|
||||
public String getResourcePackPrompt() {
|
||||
return resourcePackPrompt;
|
||||
public String getResourcePackPromptJson() {
|
||||
return resourcePackPromptJson;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user