From 5ed2d6022c04b7123481241492f29e9449064bde Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sun, 1 Apr 2018 12:17:17 +0100 Subject: [PATCH] GiveCommand: don't catch Throwables this caused me to think a thyntax error in my code was a syntax error in the NBT I was trying to parse. --- src/pocketmine/command/defaults/GiveCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/command/defaults/GiveCommand.php b/src/pocketmine/command/defaults/GiveCommand.php index 6f717188b..49a2a59ab 100644 --- a/src/pocketmine/command/defaults/GiveCommand.php +++ b/src/pocketmine/command/defaults/GiveCommand.php @@ -76,7 +76,7 @@ class GiveCommand extends VanillaCommand{ $data = implode(" ", array_slice($args, 3)); try{ $tags = JsonNBTParser::parseJSON($data); - }catch(\Throwable $ex){ + }catch(\Exception $ex){ $exception = $ex; }