Skip to content

Commit

Permalink
Fixed npe
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexMl committed Apr 5, 2016
1 parent 3776f58 commit 8dc77a5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/me/Aubli/ZvP/Game/ArenaParts/ArenaDifficulty.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void customizeEntity(Entity zombie) {
boolean setVillager = false;
boolean setCanPickupItems = false;
double maxHealth = 20D;
ItemStack[] armorContent = null;
ItemStack[] armorContent = new ItemStack[4];
Float dropchance = 0.25F;
PotionEffect potionEffect = null;

Expand All @@ -71,7 +71,6 @@ public void customizeEntity(Entity zombie) {
setVillager = (this.rand.nextBoolean() && this.rand.nextBoolean());
setCanPickupItems = false;
maxHealth = 15D;
armorContent = new ItemStack[4];
dropchance = 0F;
break;

Expand All @@ -82,14 +81,12 @@ public void customizeEntity(Entity zombie) {
setCanPickupItems = true;
maxHealth = 40D;
dropchance = 0.35F;
armorContent = new ItemStack[4];
break;
case 1:
setBaby = true;
setCanPickupItems = false;
maxHealth = 20D;
dropchance = 0.35F;
armorContent = new ItemStack[4];
break;
case 2:
setBaby = false;
Expand Down

0 comments on commit 8dc77a5

Please sign in to comment.