diff --git a/app/Models/Host.php b/app/Models/Host.php index 78c8bd7..86f399e 100644 --- a/app/Models/Host.php +++ b/app/Models/Host.php @@ -95,12 +95,12 @@ public function cost($price = null, $auto = true) $drops = $transaction->getDrops($this->user_id); - if ($price != null) { - $real_price = $price; + if ($price == null) { + $real_price = $this->price; } if ($price == 0) { - $real_price = 0; + return true; } $real_price = round($real_price ?? 0, 8);