mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +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