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 21, 2024
1 parent db44aa4 commit 193f9c3
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 193f9c3

Please sign in to comment.