mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-22 23:34:44 +02:00
Fixes, Cleanup, and Comments for actions that need further investigation
This commit is contained in:
@@ -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++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user