mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
fixed metadata check in useitem
This commit is contained in:
parent
9d82e28297
commit
5458c04983
2 changed files with 4 additions and 7 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue