mirror of
https://github.com/Deathgarden-Rebirth/Deathgarden_Rebirth-Rewrite.git
synced 2026-09-10 04:05:22 -05:00
Player inbox: rename rewardType to type because game expects that.
This commit is contained in:
@@ -157,7 +157,7 @@ public function claimMessage(ClaimInboxMessageRequest $request)
|
||||
$response = new InboxMessageClaimResponse();
|
||||
|
||||
foreach($claimable as $reward) {
|
||||
if($reward->rewardType === 'Currency') {
|
||||
if($reward->type === 'Currency') {
|
||||
switch ($reward->id) {
|
||||
case 'CurrencyA':
|
||||
$oldAmount = $playerData->currency_a;
|
||||
@@ -184,7 +184,7 @@ public function claimMessage(ClaimInboxMessageRequest $request)
|
||||
$newAmount - $oldAmount,
|
||||
);
|
||||
}
|
||||
else if($reward->rewardType === 'Inventory') {
|
||||
else if($reward->type === 'Inventory') {
|
||||
$itemUuid = Uuid::fromString($reward->id)->toString();
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user