From c1ff7bbef41c5896c025ad300dc44fed068e1c33 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Fri, 11 Aug 2017 12:31:11 +0100 Subject: [PATCH] Added creative-inventory magic slot numbers and renamed some constants --- .../network/mcpe/protocol/InventoryTransactionPacket.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/pocketmine/network/mcpe/protocol/InventoryTransactionPacket.php b/src/pocketmine/network/mcpe/protocol/InventoryTransactionPacket.php index 5d8782ec32..c9ff1429ec 100644 --- a/src/pocketmine/network/mcpe/protocol/InventoryTransactionPacket.php +++ b/src/pocketmine/network/mcpe/protocol/InventoryTransactionPacket.php @@ -81,8 +81,11 @@ class InventoryTransactionPacket extends DataPacket{ const SOURCE_TYPE_CONTAINER_DROP_CONTENTS = -100; - const SOURCE_MAGIC_SLOT_DROP_ITEM = 0; - const SOURCE_MAGIC_SLOT_PICKUP_ITEM = 1; + const ACTION_MAGIC_SLOT_DROP_ITEM = 0; + const ACTION_MAGIC_SLOT_PICKUP_ITEM = 1; + + const ACTION_MAGIC_SLOT_CREATIVE_DELETE_ITEM = 0; + const ACTION_MAGIC_SLOT_CREATIVE_CREATE_ITEM = 1; public $actions = [];