Fixes, Cleanup, and Comments for actions that need further investigation

This commit is contained in:
TechnicallyCoded
2023-10-03 15:21:10 +02:00
parent 1f20e6344b
commit 23dede6b97
17 changed files with 71 additions and 23 deletions

View File

@@ -48,7 +48,9 @@ public class RankUtils {
{
SkillUnlockNotificationTask skillUnlockNotificationTask = new SkillUnlockNotificationTask(mcMMOPlayer, subSkillType, newLevel);
mcMMO.p.getFoliaLib().getImpl().runAtEntityLater(mcMMOPlayer.getPlayer(), skillUnlockNotificationTask, (count * 100L));
long tickDelay = count * 100L; // Delay for this skill's notification
if (tickDelay == 0) tickDelay = 1; // Ensure delay always > 0
mcMMO.p.getFoliaLib().getImpl().runAtEntityLater(mcMMOPlayer.getPlayer(), skillUnlockNotificationTask, tickDelay);
count++;
}