mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-27 06:53:08 -04:00
Merge pull request #20 from repo-alt/master-MC1.7.10
Apparently blood orb may have null NBT
This commit is contained in:
commit
f3c861b14e
1
.gitignore
vendored
1
.gitignore
vendored
@ -25,3 +25,4 @@
|
||||
# VSCode
|
||||
/.vscode
|
||||
*.bat
|
||||
/classes
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user