Fix crafting not taking item from inventory

This commit is contained in:
Intyre 2016-01-25 23:10:18 +01:00
parent c7c78b1159
commit d5f3c19054
No known key found for this signature in database
GPG Key ID: B06D41D26935005A
2 changed files with 3 additions and 3 deletions

View File

@ -1525,7 +1525,7 @@ class Item{
}
public final function deepEquals(Item $item, bool $checkDamage = true, bool $checkCompound = true) : bool{
if($item->equals($item, $checkDamage, $checkCompound)){
if($this->equals($item, $checkDamage, $checkCompound)){
return true;
}elseif($item->hasCompoundTag() or $this->hasCompoundTag()){
return NBT::matchTree($this->getNamedTag(), $item->getNamedTag());