Fixed request rejecting

This commit is contained in:
Dylan K. Taylor
2023-03-20 01:35:03 +00:00
parent eece6c4433
commit 4e55433ed8
5 changed files with 17 additions and 14 deletions

View File

@ -541,7 +541,10 @@ class InGamePacketHandler extends PacketHandler{
$this->session->getLogger()->debug(implode("\n", Utils::printableExceptionInfo($e)));
}
return $executor->buildItemStackResponse($result);
if(!$result){
return new ItemStackResponse(ItemStackResponse::RESULT_ERROR, $request->getRequestId());
}
return $executor->buildItemStackResponse();
}
public function handleItemStackRequest(ItemStackRequestPacket $packet) : bool{