Skip to content

Commit

Permalink
Let Equipment trait handle setItemInHand on run()
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Apr 3, 2022
1 parent ca4302d commit e7c8876
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/main/java/net/citizensnpcs/api/trait/trait/Inventory.java
Expand Up @@ -166,9 +166,6 @@ private void saveContents(Entity entity) {
} else if (entity instanceof InventoryHolder) {
contents = ((InventoryHolder) entity).getInventory().getContents();
}
if (entity instanceof LivingEntity) {
npc.getOrAddTrait(Equipment.class).setItemInHand(contents[0]);
}
}

/**
Expand Down

0 comments on commit e7c8876

Please sign in to comment.