From eff53d90ab693dc31355649b264ad1f8568eed39 Mon Sep 17 00:00:00 2001 From: t00thpick1 Date: Sat, 25 Jul 2015 22:30:22 -0400 Subject: [PATCH] We need to preserve block data with our double drops for silk touch. Fixes #2625 --- Changelog.txt | 1 + src/main/java/com/gmail/nossr50/skills/mining/Mining.java | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Changelog.txt b/Changelog.txt index 59a90df1d..f7a97c4c0 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -9,6 +9,7 @@ Key: Version 1.5.04-SNAPSHOT = Fixed bug where absorption hearts could be attacked by allied players + = Fixed bug where new forms of stone would drop the wrong type when mined with Silk Touch Version 1.5.03 = Fixed bug where blocks would not get tracked correctly when using sticky pistons and slime blocks in certain situations diff --git a/src/main/java/com/gmail/nossr50/skills/mining/Mining.java b/src/main/java/com/gmail/nossr50/skills/mining/Mining.java index f3654a778..21f8dd0b4 100644 --- a/src/main/java/com/gmail/nossr50/skills/mining/Mining.java +++ b/src/main/java/com/gmail/nossr50/skills/mining/Mining.java @@ -64,7 +64,8 @@ public class Mining { case QUARTZ_ORE: case REDSTONE_ORE: case STONE: - Misc.dropItem(blockState.getLocation(), new ItemStack(blockType)); + case PRISMARINE: + Misc.dropItem(blockState.getLocation(), blockState.getData().toItemStack(1)); return; default: