From 992eb870fdd44db9da070c325dbac3838f23338a Mon Sep 17 00:00:00 2001 From: Asgaard Developments <146543978+s4t4n667@users.noreply.github.com> Date: Thu, 26 Feb 2026 18:03:40 +0000 Subject: [PATCH] Fix durability check to include equal condition --- client/mining.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/mining.lua b/client/mining.lua index 7ab3b0e..26f3dc4 100644 --- a/client/mining.lua +++ b/client/mining.lua @@ -45,7 +45,7 @@ local function mineOre(zoneId, oreId) local metadata = lib.callback.await('lation_mining:getmetadata', false, item) local metatype = GetDurabilityType() local degrade = shared.pickaxes[level].degrade - if not metadata or not metadata[metatype] or metadata[metatype] < degrade then + if not metadata or not metadata[metatype] or metadata[metatype] <= degrade then ShowNotification(locale('notify.pickaxe-no-durability'), 'error') return end @@ -180,4 +180,4 @@ AddEventHandler('onResourceStop', function(resourceName) end ores[zoneId] = nil end -end) \ No newline at end of file +end)