fixed metadata check in useitem

This commit is contained in:
GameHerobrine 2025-05-12 23:54:18 +03:00
parent 9d82e28297
commit 5458c04983
2 changed files with 4 additions and 7 deletions

View file

@ -311,20 +311,15 @@ class CraftingRecipes{
$needcnt -= $it[2];
}
if($needcnt != 0) {
console("awa");
goto skip_recipe;
}
}else{
$exceptedIndex = ($item[0] << 16) | ($item[1] & 0xffff);
if(!isset($recipeItems[$exceptedIndex])) {
console("awa1");
goto skip_recipe; //dont check count if no idmeta pair is in ingridients
}
$it = $recipeItems[$exceptedIndex];
if($it[0] != $item[0] || $it[1] != $item[1] || $it[2] != $item[2]) {
console("awa2");
goto skip_recipe;
}
}