Apparently blood orb may have null NBT

This commit is contained in:
repo_alt 2020-11-15 23:31:38 +03:00
parent dea93bd5e8
commit b41f3bf283
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -25,3 +25,4 @@
# VSCode
/.vscode
*.bat
/classes

View File

@ -14,7 +14,7 @@ public class ConverterBloodOrb implements Converter {
if (value instanceof ItemStack) {
final ItemStack stack = (ItemStack) value;
final Item item = stack.getItem();
if (item instanceof IBloodOrb) {
if (item instanceof IBloodOrb && stack.stackTagCompound != null) {
final IBloodOrb bloodOrb = (IBloodOrb) item;
final String ownerName = stack.stackTagCompound.getString("ownerName");
final int maxOrbTier = SoulNetworkHandler.getCurrentMaxOrb(ownerName);