2
0
Эх сурвалжийг харах

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

GJ 13 жил өмнө
parent
commit
3f8268d848

+ 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 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 custom tools not properly respecting the Ability_Enabled flag.
  = Fixed "lower tool" messages still being displayed even when ability messages are disabled.
  = 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
  ! Optimized how player placed blocks are tracked
 
 
 Version 1.3.09
 Version 1.3.09

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

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