From 0e041c419af805b43c398a13dc1d9df63ad2dfe7 Mon Sep 17 00:00:00 2001 From: asofold Date: Sat, 13 Oct 2012 12:05:16 +0200 Subject: [PATCH] Passable+cactus and ladder+efficiency-axe. --- 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 aa310b4f..8354f134 100644 --- a/src/fr/neatmonster/nocheatplus/utilities/BlockProperties.java +++ b/src/fr/neatmonster/nocheatplus/utilities/BlockProperties.java @@ -376,7 +376,7 @@ public class BlockProperties { } blocks[102] = glassType; // glass panes blocks[Material.NETHERRACK.getId()] = new BlockProps(woodPickaxe, 0.4f, secToMs(2, 0.3, 0.15, 0.1, 0.1, 0.05)); - blocks[Material.LADDER.getId()] = new BlockProps(noTool, 0.4f, secToMs(0.6)); + blocks[Material.LADDER.getId()] = new BlockProps(noTool, 0.4f, secToMs(0.6), 2.5f); blocks[Material.CACTUS.getId()] = new BlockProps(noTool, 0.4f, secToMs(0.6)); blocks[Material.WOOD_PLATE.getId()] = new BlockProps(woodAxe, 0.5f, secToMs(0.75, 0.4, 0.2, 0.15, 0.1, 0.1)); blocks[Material.STONE_PLATE.getId()] = new BlockProps(woodPickaxe, 0.5f, secToMs(2.5, 0.4, 0.2, 0.15, 0.1, 0.07)); @@ -893,6 +893,7 @@ public class BlockProperties { else if (id == Material.CAULDRON.getId()){ if (Math.abs(0.5 - fx) < 0.1 && Math.abs(0.5 - fz) < 0.1 && fy > 0.1) return true; } + else if (id == Material.CACTUS.getId() && fy >= 0.9375) return true; // Nothing found. return false; }