mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +00:00
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:
parent
37d085f793
commit
5ed2d6022c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user