From b02a57c09c5fad0d4a0bafe78e029b87f8f42553 Mon Sep 17 00:00:00 2001 From: asofold Date: Sun, 27 Jan 2013 06:58:12 +0100 Subject: [PATCH] Workaround for vines + axes. --- .../neatmonster/nocheatplus/utilities/BlockProperties.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/NCPCompat/src/main/java/fr/neatmonster/nocheatplus/utilities/BlockProperties.java b/NCPCompat/src/main/java/fr/neatmonster/nocheatplus/utilities/BlockProperties.java index 95f4a909..ba3036d6 100644 --- a/NCPCompat/src/main/java/fr/neatmonster/nocheatplus/utilities/BlockProperties.java +++ b/NCPCompat/src/main/java/fr/neatmonster/nocheatplus/utilities/BlockProperties.java @@ -724,7 +724,7 @@ public class BlockProperties { // Specialties: if (toolProps.toolType == ToolType.SHEARS){ // (Note: shears are not in the block props, anywhere) - // Treat these extra (party experimental): + // Treat these extra (partly experimental): if (blockId == Material.WEB.getId()){ duration = 400; isValidTool = true; @@ -743,6 +743,11 @@ public class BlockProperties { } } // (sword vs web already counted) + else if (blockId == Material.VINE.getId() && toolProps.toolType == ToolType.AXE){ + isValidTool = true; + if (toolProps.materialBase == MaterialBase.WOOD || toolProps.materialBase == MaterialBase.STONE) duration = 100; + else duration = 0; + } if (isValidTool || blockProps.tool.toolType == ToolType.NONE){ float mult = 1f;