소스 검색

small tweak

nossr50 4 년 전
부모
커밋
b8a38bf975
2개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Changelog.txt
  2. 3 0
      src/main/java/com/gmail/nossr50/util/compat/layers/persistentdata/AbstractPersistentDataLayer.java

+ 1 - 1
Changelog.txt

@@ -6,7 +6,7 @@ Version 2.1.143
 
     NOTES:
         The item tracking is persistent for MC versions 1.13-1.16.2 (and beyond). However the code handling the persistence for 1.13.2 differs from the other versions. It shouldn't result in any problems.
-        Any items that currently have the "mcMMO Ability Tool" lore on them won't get touched by anything this update does, there is no way to tell what the true enchant values on those items should be.
+        Any items that currently have the old "mcMMO Ability Tool" lore on them will have that lore stripped off them and will have any dig speed enchants removed. This should only affect glitched items that never properly got their buffs removed.
 
 Version 2.1.142
     Iron Arm Style renamed to Steel Arm Style

+ 3 - 0
src/main/java/com/gmail/nossr50/util/compat/layers/persistentdata/AbstractPersistentDataLayer.java

@@ -53,4 +53,7 @@ public abstract class AbstractPersistentDataLayer extends AbstractCompatibilityL
         return lore.contains(LEGACY_ABILITY_TOOL_LORE);
     }
 
+    public static String getLegacyAbilityToolLore() {
+        return LEGACY_ABILITY_TOOL_LORE;
+    }
 }