Cleanup
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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){
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user