We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cbf774 commit c920be5Copy full SHA for c920be5
src/MinecraftQueryResolver.php
@@ -60,7 +60,13 @@ public function getResult(bool $tryOldQueryProtocolPre17 = false): MinecraftQuer
60
public function getRawData(bool $tryOldQueryProtocolPre17 = false): array
61
{
62
if ($this->rawData === null) {
63
- $this->retrieveData();
+ try {
64
+ $this->retrieveData();
65
+ } catch (MinecraftQueryException $e) {
66
+ if (!$tryOldQueryProtocolPre17) {
67
+ throw $e;
68
+ }
69
70
}
71
72
if ($tryOldQueryProtocolPre17 && $this->rawData === null) {
0 commit comments