mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 01:09:44 +00:00
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:
parent
3d2c018442
commit
b6bbf655d7
@ -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()){
|
||||
|
Loading…
x
Reference in New Issue
Block a user