Don't add equipment drop chances to armor stands; resolves #1080
This commit is contained in:
parent
2b0f0354aa
commit
73cb6a65e1
|
@ -48,7 +48,8 @@ public class DMob implements DungeonMob {
|
|||
this.entity = entity;
|
||||
this.type = type != null ? type : VanillaMob.get(entity.getType());
|
||||
|
||||
if (this.type.getSpecies().isAlive() && this.type != VanillaMob.PLAYER && !getDrops(gameWorld.getDungeon().getRules().getState(GameRule.MOB_ITEM_DROPS))) {
|
||||
if (this.type.getSpecies().isAlive() && this.type != VanillaMob.ARMOR_STAND && 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