From 7eb9530346e953d1555623ff871086f85447b6c6 Mon Sep 17 00:00:00 2001 From: laurobeleche Date: Mon, 21 Nov 2016 15:38:52 -0200 Subject: [PATCH] Fix CraftItemEvent not return inputs --- src/pocketmine/event/inventory/CraftItemEvent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/event/inventory/CraftItemEvent.php b/src/pocketmine/event/inventory/CraftItemEvent.php index b90ec02bb..2d2146cc3 100644 --- a/src/pocketmine/event/inventory/CraftItemEvent.php +++ b/src/pocketmine/event/inventory/CraftItemEvent.php @@ -54,7 +54,7 @@ class CraftItemEvent extends Event implements Cancellable{ */ public function getInput(){ $items = []; - foreach($items as $i => $item){ + foreach($this->input as $i => $item){ $items[$i] = clone $item; }