Ver Fonte

Fixed minor bug with Vampirism notification

bm01 há 13 anos atrás
pai
commit
4a0d9a96ab
2 ficheiros alterados com 2 adições e 1 exclusões
  1. 1 0
      Changelog.txt
  2. 1 1
      src/main/java/com/gmail/nossr50/util/Hardcore.java

+ 1 - 0
Changelog.txt

@@ -13,6 +13,7 @@ Version 1.3.09
  + Added API for plugins to add custom tools directly via Spout - repair / abilities do not work ATM
  + Added offline party members to the list displayed by /party
  + Added possibility to kick offline members from parties
+ = Fixed Vampirism not notifying the correct amount of stolen levels
  = Fixed bug with Acrobatics not saving you from deadly falls
  = Fixed /mcremove being applied only after a reload
  = Fixed Archery PVE disablement not working properly

+ 1 - 1
src/main/java/com/gmail/nossr50/util/Hardcore.java

@@ -55,7 +55,7 @@ public class Hardcore {
             if(newValue <= 0)
                 newValue = 1;
 
-            totalCount+=1;
+            totalCount += newValue;
 
             PPk.modifySkill(st, newValue+PPk.getSkillLevel(st));
             PPd.modifySkill(st, PPd.getSkillLevel(st)-newValue);