mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-01 07:39:57 +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{
|
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;
|
return true;
|
||||||
}elseif($item->hasCompoundTag() or $this->hasCompoundTag()){
|
}elseif($item->hasCompoundTag() or $this->hasCompoundTag()){
|
||||||
return NBT::matchTree($this->getNamedTag(), $item->getNamedTag());
|
return NBT::matchTree($this->getNamedTag(), $item->getNamedTag());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user