From 60cbf7b8b9b393b39d8161c25da7fd7488c6f3c4 Mon Sep 17 00:00:00 2001 From: GJ Date: Thu, 22 Mar 2012 15:48:11 -0400 Subject: [PATCH] Fixed bugs with metadata checks. Super Breaker now works again. --- src/main/java/com/gmail/nossr50/skills/Mining.java | 2 +- src/main/java/com/gmail/nossr50/skills/WoodCutting.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/skills/Mining.java b/src/main/java/com/gmail/nossr50/skills/Mining.java index cf659bb5c..05fd159ac 100644 --- a/src/main/java/com/gmail/nossr50/skills/Mining.java +++ b/src/main/java/com/gmail/nossr50/skills/Mining.java @@ -248,7 +248,7 @@ public class Mining case NETHERRACK: case SANDSTONE: case STONE: - if (!block.hasMetadata("mcmmoPlacedBlock")) { + if (block.hasMetadata("mcmmoPlacedBlock")) { return; } diff --git a/src/main/java/com/gmail/nossr50/skills/WoodCutting.java b/src/main/java/com/gmail/nossr50/skills/WoodCutting.java index b3bbae815..ed2f4b2f2 100644 --- a/src/main/java/com/gmail/nossr50/skills/WoodCutting.java +++ b/src/main/java/com/gmail/nossr50/skills/WoodCutting.java @@ -266,7 +266,7 @@ public class WoodCutting { int xp = 0; TreeSpecies species = TreeSpecies.getByData(block.getData()); - if (block.hasMetadata("placedBlock")) { + if (block.hasMetadata("mcmmpPlacedBlock")) { return; }