mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-22 04:52:26 +00:00
Fix #1438 Crash after Breaking Chest
This commit is contained in:
1 parent
61aa8bdcf0
commit
05a263826e
3 files changed
+4
-12
No files matched your search
@@ -180,7 +180,7 @@ public class BeeRoot extends SpeciesRoot implements IBeeRoot {
|
||||
|
||||
@Override
|
||||
public IBee getMember(ItemStack stack) {
|
||||
if (!isMember(stack)) {
|
||||
if (!isMember(stack) || !stack.hasTagCompound()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@@ -26,11 +26,7 @@ public abstract class Individual implements IIndividual {
|
||||
}
|
||||
|
||||
protected Individual(@Nonnull NBTTagCompound nbt) {
|
||||
if(nbt.hasKey("IsAnalyzed")){
|
||||
isAnalyzed = nbt.getBoolean("IsAnalyzed");
|
||||
}else{
|
||||
isAnalyzed = false;
|
||||
}
|
||||
isAnalyzed = nbt.getBoolean("IsAnalyzed");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -32,12 +32,8 @@ public abstract class IndividualLiving extends Individual implements IIndividual
|
||||
|
||||
protected IndividualLiving(@Nonnull NBTTagCompound nbt) {
|
||||
super(nbt);
|
||||
if(nbt.hasKey("Health")){
|
||||
health = nbt.getInteger("Health");
|
||||
}
|
||||
if(nbt.hasKey("MaxH")){
|
||||
maxHealth = nbt.getInteger("MaxH");
|
||||
}
|
||||
health = nbt.getInteger("Health");
|
||||
maxHealth = nbt.getInteger("MaxH");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user