Anime-Game-Servers / Grasscutter-Quests

A server software implementation, ineroperable with a certain anime game client. The code in this repository is fully custom made for edyoucational purposes and future preservation, no copyrighted code is allowed in this repository.
https://grasscutters.xyz/grasscutter
GNU Affero General Public License v3.0
137 stars 31 forks source link

Use getGroupIdOrCurrentId when possible #165

Closed scooterboo closed 1 month ago

scooterboo commented 1 month ago

Description

Sometimes, groupId is 0. That means you use the current group. We have a function to make that easy to do!

Fixes group 166001305

before: image image

after: image

Checklist:

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud