Browse Source

Fixed custom blocks dropping the wrong thing with Super Breaker & Silk
Touch

GJ 13 years ago
parent
commit
3f8268d848
2 changed files with 2 additions and 1 deletions
  1. 1 0
      Changelog.txt
  2. 1 1
      src/main/java/com/gmail/nossr50/skills/gathering/Mining.java

+ 1 - 0
Changelog.txt

@@ -25,6 +25,7 @@ Version 1.3.10-dev
  = Fixed ArrayIndexOutOfBounds error caused when trying to use /xplock after logging in but before gaining XP
  = Fixed custom tools not properly respecting the Ability_Enabled flag.
  = Fixed "lower tool" messages still being displayed even when ability messages are disabled.
+ = Fixed custom blocks not dropping the proper item with Super Breaker when Silk Touch is used
  ! Optimized how player placed blocks are tracked
 
 Version 1.3.09

+ 1 - 1
src/main/java/com/gmail/nossr50/skills/gathering/Mining.java

@@ -88,7 +88,7 @@ public class Mining {
 
         default:
             if (ModChecks.isCustomMiningBlock(block)) {
-                Misc.dropItem(loc, item);
+                Misc.dropItem(loc, new ItemStack(block.getTypeId(), 1, (short) 0, block.getData()));
             }
             break;
         }