Parcourir la source

Fixing these infinite recursing methods

Oops, that was silly. Thanks @t00thpick1
TfT_02 il y a 12 ans
Parent
commit
9c6d1ce020
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  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
     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
     public static void addRawXPOffline(String playerName, String skillType, int XP) {
-        addRawXPOffline(playerName, skillType, XP);
+        addRawXPOffline(playerName, skillType, (float) XP);
     }
 
     /**