nossr50 пре 12 година
родитељ
комит
45fbb47ccf

+ 1 - 1
src/main/java/com/gmail/nossr50/database/commands/MmoupdateCommand.java

@@ -42,4 +42,4 @@ public class MmoupdateCommand implements CommandExecutor {
 
         mcMMO.p.getServer().getScheduler().runTaskLaterAsynchronously(mcMMO.p, new SQLConversionTask(), 1);
     }
-}
+}

+ 4 - 4
src/main/java/com/gmail/nossr50/datatypes/McMMOPlayer.java

@@ -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);
     }