mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-04 11:03:43 +01:00 
			
		
		
		
	Moving this check up
This commit is contained in:
		@@ -42,4 +42,4 @@ public class MmoupdateCommand implements CommandExecutor {
 | 
			
		||||
 | 
			
		||||
        mcMMO.p.getServer().getScheduler().runTaskLaterAsynchronously(mcMMO.p, new SQLConversionTask(), 1);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
}
 | 
			
		||||
@@ -65,6 +65,10 @@ public class McMMOPlayer {
 | 
			
		||||
     * @param xp Experience amount to process
 | 
			
		||||
     */
 | 
			
		||||
    public void beginXpGain(SkillType skillType, int xp) {
 | 
			
		||||
    	if (xp == 0) {
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
    	
 | 
			
		||||
        // Return if the experience has been shared
 | 
			
		||||
        if (party != null && ShareHandler.handleXpShare(xp, this, skillType)) {
 | 
			
		||||
            return;
 | 
			
		||||
@@ -82,10 +86,6 @@ public class McMMOPlayer {
 | 
			
		||||
    public void beginUnsharedXpGain(SkillType skillType, int xp) {
 | 
			
		||||
        xp = modifyXpGain(skillType, xp);
 | 
			
		||||
 | 
			
		||||
        if (xp == 0) {
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        applyXpGain(skillType, xp);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user