Fixed reloading
This commit is contained in:
@@ -45,10 +45,7 @@ public class ContentLoader{
|
|||||||
};
|
};
|
||||||
|
|
||||||
public ContentLoader(){
|
public ContentLoader(){
|
||||||
for(ContentType type : ContentType.values()){
|
clear();
|
||||||
contentMap[type.ordinal()] = new Array<>();
|
|
||||||
contentNameMap[type.ordinal()] = new ObjectMap<>();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Clears all initialized content.*/
|
/** Clears all initialized content.*/
|
||||||
@@ -56,6 +53,11 @@ public class ContentLoader{
|
|||||||
contentNameMap = new ObjectMap[ContentType.values().length];
|
contentNameMap = new ObjectMap[ContentType.values().length];
|
||||||
contentMap = new Array[ContentType.values().length];
|
contentMap = new Array[ContentType.values().length];
|
||||||
initialization = new ObjectSet<>();
|
initialization = new ObjectSet<>();
|
||||||
|
|
||||||
|
for(ContentType type : ContentType.values()){
|
||||||
|
contentMap[type.ordinal()] = new Array<>();
|
||||||
|
contentNameMap[type.ordinal()] = new ObjectMap<>();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user