Skip to content

Commit

Permalink
fix: make durability fall back to health
Browse files Browse the repository at this point in the history
  • Loading branch information
beheh committed Jul 16, 2024
1 parent a166ad4 commit f25bc71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ts/Entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default class Entity {
}

public getDurability(): number {
return this.getTag(GameTag.DURABILITY);
return this.getTag(GameTag.DURABILITY) || this.getTag(GameTag.HEALTH);
}

public isPremium(): boolean {
Expand Down

0 comments on commit f25bc71

Please sign in to comment.