mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 16:58:34 +01:00
Fixed a stupid NP that crashed the BTM server.
*Hangs himself in shame now*
This commit is contained in:
parent
62aa68560c
commit
11c78bf455
1 changed files with 11 additions and 9 deletions
|
@ -38,6 +38,7 @@ public class EntrySet{
|
||||||
}
|
}
|
||||||
|
|
||||||
public static EntrySet readFromNBT(NBTTagCompound compound){
|
public static EntrySet readFromNBT(NBTTagCompound compound){
|
||||||
|
if(compound != null){
|
||||||
if(compound.hasKey("Entry")){
|
if(compound.hasKey("Entry")){
|
||||||
int entry = compound.getInteger("Entry");
|
int entry = compound.getInteger("Entry");
|
||||||
int chapter = compound.getInteger("Chapter");
|
int chapter = compound.getInteger("Chapter");
|
||||||
|
@ -50,6 +51,7 @@ public class EntrySet{
|
||||||
|
|
||||||
return new EntrySet(currentPage, currentChapter, currentEntry, pageInIndex);
|
return new EntrySet(currentPage, currentChapter, currentEntry, pageInIndex);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return new EntrySet(null);
|
return new EntrySet(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue