From f25bc71fc44a25ccbd9311518710adf41cf6e73a Mon Sep 17 00:00:00 2001 From: Benedict Etzel Date: Tue, 16 Jul 2024 11:17:59 +0200 Subject: [PATCH] fix: make durability fall back to health --- ts/Entity.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/Entity.ts b/ts/Entity.ts index 611c2df..4a56c52 100644 --- a/ts/Entity.ts +++ b/ts/Entity.ts @@ -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 {