Merge pull request #20 from repo-alt/master-MC1.7.10

Apparently blood orb may have null NBT
This commit is contained in:
repo-alt 2020-11-15 23:33:08 +03:00 committed by GitHub
commit f3c861b14e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);