update
This commit is contained in:
parent
66d929ff9f
commit
e15cfb3443
@ -95,12 +95,12 @@ public function cost($price = null, $auto = true)
|
|||||||
|
|
||||||
$drops = $transaction->getDrops($this->user_id);
|
$drops = $transaction->getDrops($this->user_id);
|
||||||
|
|
||||||
if ($price !== null) {
|
if ($price != null) {
|
||||||
$real_price = $price;
|
$real_price = $price;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($price == 0) {
|
if ($price == 0) {
|
||||||
return true;
|
$real_price = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
$real_price = round($real_price ?? 0, 8);
|
$real_price = round($real_price ?? 0, 8);
|
||||||
|
Loading…
Reference in New Issue
Block a user