mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-27 15:06:41 -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
|
||||||
/.vscode
|
/.vscode
|
||||||
*.bat
|
*.bat
|
||||||
|
/classes
|
||||||
|
@ -14,7 +14,7 @@ public class ConverterBloodOrb implements Converter {
|
|||||||
if (value instanceof ItemStack) {
|
if (value instanceof ItemStack) {
|
||||||
final ItemStack stack = (ItemStack) value;
|
final ItemStack stack = (ItemStack) value;
|
||||||
final Item item = stack.getItem();
|
final Item item = stack.getItem();
|
||||||
if (item instanceof IBloodOrb) {
|
if (item instanceof IBloodOrb && stack.stackTagCompound != null) {
|
||||||
final IBloodOrb bloodOrb = (IBloodOrb) item;
|
final IBloodOrb bloodOrb = (IBloodOrb) item;
|
||||||
final String ownerName = stack.stackTagCompound.getString("ownerName");
|
final String ownerName = stack.stackTagCompound.getString("ownerName");
|
||||||
final int maxOrbTier = SoulNetworkHandler.getCurrentMaxOrb(ownerName);
|
final int maxOrbTier = SoulNetworkHandler.getCurrentMaxOrb(ownerName);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user