mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-11 14:05:35 +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));
|
$data = implode(" ", array_slice($args, 3));
|
||||||
try{
|
try{
|
||||||
$tags = JsonNBTParser::parseJSON($data);
|
$tags = JsonNBTParser::parseJSON($data);
|
||||||
}catch(\Throwable $ex){
|
}catch(\Exception $ex){
|
||||||
$exception = $ex;
|
$exception = $ex;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user