Browse Source

Prevent tool ready messages on shulker boxes

nossr50 6 years ago
parent
commit
00bee60151
2 changed files with 3 additions and 0 deletions
  1. 1 0
      Changelog.txt
  2. 2 0
      src/main/java/com/gmail/nossr50/util/MaterialMapStore.java

+ 1 - 0
Changelog.txt

@@ -1,5 +1,6 @@
 Version 2.1.70
     Added new DatabaseAPI to the API package, has features relating to database operations
+    Fixed a bug where shulker boxes (without colors) would activate tool ready messages
 
 Version 2.1.69
     Fixed a few places where mcMMO would not save player data immediately which may cause players to lose a few minutes of progress

+ 2 - 0
src/main/java/com/gmail/nossr50/util/MaterialMapStore.java

@@ -282,6 +282,7 @@ public class MaterialMapStore {
         abilityBlackList.add("light_gray_shulker_box");
         abilityBlackList.add("white_shulker_box");
         abilityBlackList.add("yellow_shulker_box");
+        abilityBlackList.add("shulker_box");
         abilityBlackList.add("wall_sign"); //1.13 and lower?
         abilityBlackList.add("sign"); //1.13 and lower?
     }
@@ -372,6 +373,7 @@ public class MaterialMapStore {
         toolBlackList.add("light_gray_shulker_box");
         toolBlackList.add("white_shulker_box");
         toolBlackList.add("yellow_shulker_box");
+        toolBlackList.add("shulker_box");
         toolBlackList.add("acacia_sign");
         toolBlackList.add("acacia_wall_sign");
         toolBlackList.add("birch_sign");