InventoryTransactionPacket: fixed crafting flags being set on useless empty transactions

this fixes some misleading debug noise when getting stuff from creative inventory and triggers some different spam instead.
This commit is contained in:
Dylan K. Taylor 2019-12-06 20:08:09 +00:00
parent 3d2c018442
commit b6bbf655d7

View File

@ -80,7 +80,8 @@ class InventoryTransactionPacket extends DataPacket{
if(
$action->sourceType === NetworkInventoryAction::SOURCE_CONTAINER and
$action->windowId === ContainerIds::UI and
$action->inventorySlot === 50
$action->inventorySlot === 50 and
!$action->oldItem->equalsExact($action->newItem)
){
$this->isCraftingPart = true;
if(!$action->oldItem->isNull() and $action->newItem->isNull()){