Make sure mobs are alive before setting drop chances; resolves #1080
This commit is contained in:
parent
a5ddd04771
commit
5f607a9d3b
|
@ -48,7 +48,7 @@ public class DMob implements DungeonMob {
|
|||
this.entity = entity;
|
||||
this.type = type != null ? type : VanillaMob.get(entity.getType());
|
||||
|
||||
if (this.type != VanillaMob.PLAYER && !getDrops(gameWorld.getDungeon().getRules().getState(GameRule.MOB_ITEM_DROPS))) {
|
||||
if (this.type.getSpecies().isAlive() && this.type != VanillaMob.PLAYER && !getDrops(gameWorld.getDungeon().getRules().getState(GameRule.MOB_ITEM_DROPS))) {
|
||||
entity.getEquipment().setHelmetDropChance(0);
|
||||
entity.getEquipment().setChestplateDropChance(0);
|
||||
entity.getEquipment().setLeggingsDropChance(0);
|
||||
|
|
Loading…
Reference in New Issue