From 1c5b473b3626755f60e84cb02da09b2ab5c93eb7 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Sun, 24 Nov 2013 11:45:18 +0100 Subject: [PATCH] Added player.craft handler --- src/Player.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Player.php b/src/Player.php index d5a6a6c6..5df60921 100644 --- a/src/Player.php +++ b/src/Player.php @@ -736,6 +736,9 @@ class Player{ } if(is_array($res)){ + if($this->server->api->dhandle("player.craft", array("player" => $this, "recipe" => $recipe, "craft" => $craft, "type" => $type)) === false){ + return false; + } foreach($recipe as $slot => $item){ $s = $this->getSlot($slot); $s->count -= $item->count;