mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
CreativeInventory: do not disable meta comparison for durable items
this check no longer applies, and it's usually undesirable to avoid comparing meta in every other case.
This commit is contained in:
parent
09c1e161e0
commit
ff96f1b93c
@ -24,7 +24,6 @@ declare(strict_types=1);
|
||||
namespace pocketmine\inventory;
|
||||
|
||||
use pocketmine\data\SavedDataLoadingException;
|
||||
use pocketmine\item\Durable;
|
||||
use pocketmine\item\Item;
|
||||
use pocketmine\utils\SingletonTrait;
|
||||
use Webmozart\PathUtil\Path;
|
||||
@ -72,7 +71,7 @@ final class CreativeInventory{
|
||||
|
||||
public function getItemIndex(Item $item) : int{
|
||||
foreach($this->creative as $i => $d){
|
||||
if($item->equals($d, !($item instanceof Durable))){
|
||||
if($item->equals($d, true, false)){
|
||||
return $i;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user