mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-09 15:29:47 +00:00
CraftingDataPacket: Fixed uncaught exception in decode
this is not exploitable because it's not a serverbound packet, but it should be fixed nonetheless.
This commit is contained in:
parent
cd8645ff20
commit
b11d3b0401
@ -110,7 +110,11 @@ class CraftingDataPacket extends DataPacket implements ClientboundPacket{
|
||||
$inputData = -1;
|
||||
}
|
||||
}
|
||||
try{
|
||||
$entry["input"] = ItemFactory::get($inputId, $inputData);
|
||||
}catch(\InvalidArgumentException $e){
|
||||
throw new BadPacketException($e->getMessage(), 0, $e);
|
||||
}
|
||||
$entry["output"] = $this->getSlot();
|
||||
$entry["block"] = $this->getString();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user