Polish resource pack support

This commit is contained in:
LOOHP
2021-11-22 01:16:20 +00:00
parent 7ce2c6b194
commit d86bcdb48d
9 changed files with 91 additions and 46 deletions
@@ -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;
}
}