From d83d07c42ad573205e97868aaa009374bf89d66e Mon Sep 17 00:00:00 2001 From: asofold Date: Sat, 29 Sep 2012 17:58:48 +0200 Subject: [PATCH] Fix snow breaking time with wrong tool and efficiency. --- src/fr/neatmonster/nocheatplus/utilities/BlockProperties.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fr/neatmonster/nocheatplus/utilities/BlockProperties.java b/src/fr/neatmonster/nocheatplus/utilities/BlockProperties.java index e7df81bc..81c54f44 100644 --- a/src/fr/neatmonster/nocheatplus/utilities/BlockProperties.java +++ b/src/fr/neatmonster/nocheatplus/utilities/BlockProperties.java @@ -662,6 +662,7 @@ public class BlockProperties { if (!isValidTool && efficiency > 0){ // Efficiency makes the tool. // (wood, sand, gravel, ice) + if (blockId == Material.SNOW.getId()) return toolProps.toolType == ToolType.SPADE; if (blockId == Material.WOOL.getId()) return true; if (blockProps.hardness <= 2 && (blockProps.tool.toolType == ToolType.AXE @@ -669,7 +670,7 @@ public class BlockProperties { || (blockProps.hardness < 0.8 && (blockId != Material.NETHERRACK.getId() && blockId != Material.SNOW.getId() && blockId != Material.SNOW_BLOCK.getId() && blockId != Material.STONE_PLATE.getId())))){ // Also roughly. return true; - } + } } return isValidTool; }