mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-12-25 18:17:46 +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) {
|
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user