mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-25 18:47:40 +01:00
Update BlockAlternative.java
This commit is contained in:
parent
18ce3625c7
commit
840eb1a27e
@ -31,14 +31,14 @@ public class BlockAlternative {
|
||||
return map;
|
||||
}
|
||||
|
||||
public String withProperties(String key) {
|
||||
public String getProperty(String key) {
|
||||
for (String p : properties) {
|
||||
String[] parts = p.split("=");
|
||||
if (parts.length > 1)
|
||||
if (parts[0].equals(key))
|
||||
return parts[1];
|
||||
}
|
||||
return "";
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user