Fixed a stupid NP that crashed the BTM server.

*Hangs himself in shame now*
This commit is contained in:
Ellpeck 2015-12-23 00:38:39 +01:00
parent 62aa68560c
commit 11c78bf455

View file

@ -38,6 +38,7 @@ public class EntrySet{
}
public static EntrySet readFromNBT(NBTTagCompound compound){
if(compound != null){
if(compound.hasKey("Entry")){
int entry = compound.getInteger("Entry");
int chapter = compound.getInteger("Chapter");
@ -50,6 +51,7 @@ public class EntrySet{
return new EntrySet(currentPage, currentChapter, currentEntry, pageInIndex);
}
}
return new EntrySet(null);
}