This commit is contained in:
Anuken
2020-06-08 17:31:02 -04:00
parent 5be5d11c8e
commit 6dd9369066
35 changed files with 121 additions and 125 deletions

View File

@@ -536,7 +536,7 @@ public class ContentParser{
private void checkNullFields(Object object){
if(object instanceof Number || object instanceof String || toBeParsed.contains(object)) return;
parser.getFields(object.getClass()).values().toArray().each(field -> {
parser.getFields(object.getClass()).values().toSeq().each(field -> {
try{
if(field.field.getType().isPrimitive()) return;

View File

@@ -414,7 +414,7 @@ public class Administration{
}
public Seq<PlayerInfo> getWhitelisted(){
return playerInfo.values().toArray().select(p -> isWhitelisted(p.id, p.adminUsid));
return playerInfo.values().toSeq().select(p -> isWhitelisted(p.id, p.adminUsid));
}
private PlayerInfo getCreateInfo(String id){

View File

@@ -14,7 +14,7 @@ public class BlockBars{
public void remove(String name){
if(!bars.containsKey(name))
throw new RuntimeException("No bar with name '" + name + "' found; current bars: " + bars.keys().toArray());
throw new RuntimeException("No bar with name '" + name + "' found; current bars: " + bars.keys().toSeq());
bars.remove(name);
}