nossr50 5 年之前
父节点
当前提交
ed69f843aa
共有 3 个文件被更改,包括 3 次插入2 次删除
  1. 1 1
      Changelog.txt
  2. 1 1
      pom.xml
  3. 1 0
      src/main/java/com/gmail/nossr50/skills/woodcutting/WoodcuttingManager.java

+ 1 - 1
Changelog.txt

@@ -2,7 +2,7 @@ Version 2.1.130
     Fixed a bug that prevented Repair from working on the new Netherite weapons/armors
     Fixed a bug where Netherite gear used Gold Ingots to repair instead of Netherite Scraps (by default)
     mcMMO will now run a script to fix a misspelling of netherite in repair/salvage configs (script only runs once and then never again)
-    mcMMO will produce a fake ItemDamageEvent before damaging axes in Tree Feller execution
+    mcMMO will produce a fake PlayerItemDamageEvent before damaging axes in Tree Feller execution
 
 
     NOTES:

+ 1 - 1
pom.xml

@@ -2,7 +2,7 @@
     <modelVersion>4.0.0</modelVersion>
     <groupId>com.gmail.nossr50.mcMMO</groupId>
     <artifactId>mcMMO</artifactId>
-    <version>2.1.130-SNAPSHOT</version>
+    <version>2.1.130</version>
     <name>mcMMO</name>
     <url>https://github.com/mcMMO-Dev/mcMMO</url>
     <scm>

+ 1 - 0
src/main/java/com/gmail/nossr50/skills/woodcutting/WoodcuttingManager.java

@@ -221,6 +221,7 @@ public class WoodcuttingManager extends SkillManager {
         }
 
         // Call PlayerItemDamageEvent first to make sure it's not cancelled
+        //TODO: Put this event stuff in handleDurabilityChange
         final PlayerItemDamageEvent event = new PlayerItemDamageEvent(player, inHand, durabilityLoss);
         Bukkit.getPluginManager().callEvent(event);