Ver código fonte

We already check the block data before calling this function.

GJ 12 anos atrás
pai
commit
9c0f763949

+ 2 - 6
src/main/java/com/gmail/nossr50/skills/herbalism/Herbalism.java

@@ -95,9 +95,7 @@ public class Herbalism {
 
 
             switch (type) {
             switch (type) {
             case SMOOTH_BRICK:
             case SMOOTH_BRICK:
-                if (block.getData() == 0x0) {
-                    block.setData((byte) 0x1);
-                }
+                block.setData((byte) 0x1);
                 return;
                 return;
 
 
             case DIRT:
             case DIRT:
@@ -109,9 +107,7 @@ public class Herbalism {
                 return;
                 return;
 
 
             case COBBLE_WALL:
             case COBBLE_WALL:
-                if (block.getData() == 0x0) {
-                    block.setData((byte) 0x1);
-                }
+                block.setData((byte) 0x1);
                 return;
                 return;
 
 
             default:
             default: