Skip to content

Commit ebd81e9

Browse files
committed
Properly pass along build information to Wings; closes pterodactyl#2552
1 parent 964a143 commit ebd81e9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/Services/Servers/BuildModificationService.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,11 @@ public function handle(Server $server, array $data)
8282

8383
$updateData = $this->structureService->handle($server);
8484

85-
$this->daemonServerRepository->setServer($server)->update($updateData['build'] ?? []);
85+
if (!empty($updateData['build'])) {
86+
$this->daemonServerRepository->setServer($server)->update([
87+
'build' => $updateData['build'],
88+
]);
89+
}
8690

8791
$this->connection->commit();
8892

0 commit comments

Comments
 (0)