mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-01 16:19:53 +01:00
We already check the block data before calling this function.
This commit is contained in:
parent
6571864b16
commit
9c0f763949
@ -95,9 +95,7 @@ public class Herbalism {
|
||||
|
||||
switch (type) {
|
||||
case SMOOTH_BRICK:
|
||||
if (block.getData() == 0x0) {
|
||||
block.setData((byte) 0x1);
|
||||
}
|
||||
block.setData((byte) 0x1);
|
||||
return;
|
||||
|
||||
case DIRT:
|
||||
@ -109,9 +107,7 @@ public class Herbalism {
|
||||
return;
|
||||
|
||||
case COBBLE_WALL:
|
||||
if (block.getData() == 0x0) {
|
||||
block.setData((byte) 0x1);
|
||||
}
|
||||
block.setData((byte) 0x1);
|
||||
return;
|
||||
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user