فهرست منبع

Fixing these infinite recursing methods

Oops, that was silly. Thanks @t00thpick1
TfT_02 11 سال پیش
والد
کامیت
9c6d1ce020
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      src/main/java/com/gmail/nossr50/api/ExperienceAPI.java

+ 2 - 2
src/main/java/com/gmail/nossr50/api/ExperienceAPI.java

@@ -50,7 +50,7 @@ public final class ExperienceAPI {
 
 
     @Deprecated
     @Deprecated
     public static void addRawXP(Player player, String skillType, int XP) {
     public static void addRawXP(Player player, String skillType, int XP) {
-        addRawXP(player, skillType, XP);
+        addRawXP(player, skillType, (float) XP);
     }
     }
 
 
     /**
     /**
@@ -70,7 +70,7 @@ public final class ExperienceAPI {
 
 
     @Deprecated
     @Deprecated
     public static void addRawXPOffline(String playerName, String skillType, int XP) {
     public static void addRawXPOffline(String playerName, String skillType, int XP) {
-        addRawXPOffline(playerName, skillType, XP);
+        addRawXPOffline(playerName, skillType, (float) XP);
     }
     }
 
 
     /**
     /**