mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-27 11:38:03 +01:00
Update BlockAlternative.java
This commit is contained in:
parent
18ce3625c7
commit
840eb1a27e
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user