Don't add equipment drop chances to armor stands; resolves #1080

This commit is contained in:
Daniel Saukel 2022-02-18 22:25:01 +01:00
parent 2b0f0354aa
commit 73cb6a65e1
1 changed files with 2 additions and 1 deletions

View File

@ -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);