mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-25 14:34:36 +00:00
Ton of null fixes
This commit is contained in:
132 files changed
+403
-325
No files matched your search
@@ -464,7 +464,7 @@ public class EntityDoppleganger extends EntityLiving implements IBotaniaBoss {
|
||||
super.dropEquipment(wasRecentlyHit, lootingModifier);
|
||||
|
||||
for (EntityEquipmentSlot e : EntityEquipmentSlot.values()) {
|
||||
setItemStackToSlot(e, null);
|
||||
setItemStackToSlot(e, ItemStack.EMPTY);
|
||||
}
|
||||
|
||||
// Generate loot table for every single attacking player
|
||||
@@ -606,7 +606,7 @@ public class EntityDoppleganger extends EntityLiving implements IBotaniaBoss {
|
||||
else {
|
||||
for(EntityPlayer player : players) {
|
||||
for(EntityEquipmentSlot e : EntityEquipmentSlot.values()) {
|
||||
if(e.getSlotType() == EntityEquipmentSlot.Type.ARMOR && player.getItemStackFromSlot(e) != null) {
|
||||
if(e.getSlotType() == EntityEquipmentSlot.Type.ARMOR && !player.getItemStackFromSlot(e).isEmpty()) {
|
||||
anyWithArmor = true;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user