Skip to content

Commit

Permalink
Don't require minecraft integration on player mode
Browse files Browse the repository at this point in the history
  • Loading branch information
partydragen committed Feb 13, 2023
1 parent 9ae864c commit e1925d9
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions upload/modules/Store/classes/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,11 +276,13 @@ public function getRequiredIntegrations(): array {
$required_integrations_list = [];

$integrations = Integrations::getInstance();
foreach ($this->getActions() as $action) {
if ($action->getService()->getId() == 2) {
$integration = $integrations->getIntegration('Minecraft');
if ($integration != null) {
$required_integrations_list[$integration->data()->id] = $integration;
if (!$store->isPlayerSystemEnabled()) {
foreach ($this->getActions() as $action) {
if ($action->getService()->getId() == 2) {
$integration = $integrations->getIntegration('Minecraft');
if ($integration != null) {
$required_integrations_list[$integration->data()->id] = $integration;
}
}
}
}
Expand Down

0 comments on commit e1925d9

Please sign in to comment.