fixed durability(again)

This commit is contained in:
GameHerobrine 2025-06-12 03:53:34 +03:00
parent baa4ff0437
commit 410d87fa14

View file

@ -262,15 +262,15 @@ class Item{
return false; return false;
} }
$levels = [ //TODO rewrite(item usage too) $levels = [
2 => 33, //GOLD 2 => 32, //GOLD
1 => 60, //WOODEN 1 => 59, //WOODEN
3 => 132, //STONE 3 => 131, //STONE
4 => 251, //IRON 4 => 250, //IRON
5 => 1562, //DIAMOND(called EMERALD in disassembled code) 5 => 1561, //DIAMOND(called EMERALD in disassembled code)
FLINT_STEEL => 65, //lets assume it is correct FLINT_STEEL => 64,
SHEARS => 239, //x2 SHEARS => 238,
BOW => 385 //x3 BOW => 384
]; ];
if(($type = $this->getLevel()) === false){ if(($type = $this->getLevel()) === false){