Fixed save loader failing to load status effects

This commit is contained in:
Anuken 2018-09-07 09:40:13 -04:00
parent 2ad8f1c112
commit 9f4430ad92

View File

@ -201,7 +201,7 @@ public class ContentLoader{
//offset negative values by 256, as they are probably a product of byte overflow
if(id < 0) id += 256;
if(temporaryMapper != null && temporaryMapper[type.ordinal()] != null){
if(temporaryMapper != null && temporaryMapper[type.ordinal()] != null && temporaryMapper[type.ordinal()].length != 0){
return (T)temporaryMapper[type.ordinal()][id];
}