Skip to content

Commit

Permalink
Remove zombie armour. Add back in default drops for picked up items.
Browse files Browse the repository at this point in the history
  • Loading branch information
totemo committed Aug 5, 2017
1 parent 208a2f6 commit 08adcbe
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>nu.nerd</groupId>
<name>BeastMaster</name>
<artifactId>${project.name}</artifactId>
<version>1.2.1</version>
<version>1.2.2</version>
<packaging>jar</packaging>
<description>Handles custom mob spawning.</description>
<url>https://github.com/NerdNu/${project.name}</url>
Expand Down
1 change: 0 additions & 1 deletion src/nu/nerd/beastmaster/BeastMaster.java
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,6 @@ public void onEntityDeath(EntityDeathEvent event) {
// To do better than this, we need persistent metadata. *sigh*
MobType mobType = MOBS.getMobType(monster);
if (mobType != null) {
event.getDrops().clear();
mobType.getDropSet().drop(loc);
}
} // onEntityDeath
Expand Down
6 changes: 6 additions & 0 deletions src/nu/nerd/beastmaster/MobType.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ public void configureMob(LivingEntity mob) {
maxHealth.setBaseValue(_health);
mob.setHealth(_health);
}

// Clear default armour.
mob.getEquipment().setHelmet(null);
mob.getEquipment().setChestplate(null);
mob.getEquipment().setLeggings(null);
mob.getEquipment().setBoots(null);
}

// ------------------------------------------------------------------------
Expand Down

0 comments on commit 08adcbe

Please sign in to comment.