Skip to content

Commit

Permalink
moved sendTextMessage position (after action).
Browse files Browse the repository at this point in the history
  • Loading branch information
elsongabriel committed Feb 22, 2024
1 parent 4369cc4 commit fd0ee50
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ function removeEmptyParcelsEvent.onLogin(player)
end

if #emptyParcelsToRemove > 0 then
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, #emptyParcelsToRemove .. " empty parcels were removed from your store inbox!")
for _, parcel in pairs(emptyParcelsToRemove) do
parcel:remove()
end
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, #emptyParcelsToRemove .. " empty parcels were removed from your store inbox!")
end
return true
end
Expand Down

0 comments on commit fd0ee50

Please sign in to comment.