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.
This commit is contained in:
Dylan K. Taylor 2018-04-01 12:17:17 +01:00
parent 37d085f793
commit 5ed2d6022c

View File

@ -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;
}