From 410d87fa145fd0adb67789e2c7071917af233f2d Mon Sep 17 00:00:00 2001 From: GameHerobrine Date: Thu, 12 Jun 2025 03:53:34 +0300 Subject: [PATCH] fixed durability(again) --- src/material/Item.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/material/Item.php b/src/material/Item.php index 104be38b..5ed4b2d9 100755 --- a/src/material/Item.php +++ b/src/material/Item.php @@ -262,15 +262,15 @@ class Item{ return false; } - $levels = [ //TODO rewrite(item usage too) - 2 => 33, //GOLD - 1 => 60, //WOODEN - 3 => 132, //STONE - 4 => 251, //IRON - 5 => 1562, //DIAMOND(called EMERALD in disassembled code) - FLINT_STEEL => 65, //lets assume it is correct - SHEARS => 239, //x2 - BOW => 385 //x3 + $levels = [ + 2 => 32, //GOLD + 1 => 59, //WOODEN + 3 => 131, //STONE + 4 => 250, //IRON + 5 => 1561, //DIAMOND(called EMERALD in disassembled code) + FLINT_STEEL => 64, + SHEARS => 238, + BOW => 384 ]; if(($type = $this->getLevel()) === false){