mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-30 23:29:54 +00:00
Fix crafting not taking item from inventory
This commit is contained in:
parent
c7c78b1159
commit
d5f3c19054
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user