Update BlockAlternative.java

This commit is contained in:
MrBretzel 2021-01-21 17:21:36 +01:00 committed by GitHub
parent 18ce3625c7
commit 840eb1a27e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,14 +31,14 @@ public class BlockAlternative {
return map; return map;
} }
public String withProperties(String key) { public String getProperty(String key) {
for (String p : properties) { for (String p : properties) {
String[] parts = p.split("="); String[] parts = p.split("=");
if (parts.length > 1) if (parts.length > 1)
if (parts[0].equals(key)) if (parts[0].equals(key))
return parts[1]; return parts[1];
} }
return ""; return null;
} }
@Override @Override