mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-28 16:16:47 +01:00
Fixing checked data values for carrots and potatoes.
This commit is contained in:
parent
42aa426991
commit
61298d2e33
6
src/main/java/com/gmail/nossr50/skills/gathering/Herbalism.java
Normal file → Executable file
6
src/main/java/com/gmail/nossr50/skills/gathering/Herbalism.java
Normal file → Executable file
@ -62,8 +62,6 @@ public class Herbalism {
|
|||||||
}
|
}
|
||||||
else if (Config.getInstance().getHerbalismGreenThumbCobbleToMossy() && type == Material.COBBLESTONE) {
|
else if (Config.getInstance().getHerbalismGreenThumbCobbleToMossy() && type == Material.COBBLESTONE) {
|
||||||
block.setType(Material.MOSSY_COBBLESTONE);
|
block.setType(Material.MOSSY_COBBLESTONE);
|
||||||
// Don't award double drops to mossified cobblestone
|
|
||||||
mcMMO.placeStore.setTrue(block);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -202,14 +200,14 @@ public class Herbalism {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case CARROT:
|
case CARROT:
|
||||||
if (((byte) data) == 0x3) {
|
if (data == CropState.RIPE.getData()) {
|
||||||
mat = Material.CARROT;
|
mat = Material.CARROT;
|
||||||
xp = Config.getInstance().getHerbalismXPCarrot();
|
xp = Config.getInstance().getHerbalismXPCarrot();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case POTATO:
|
case POTATO:
|
||||||
if (((byte) data) == 0x3) {
|
if (data == CropState.RIPE.getData()) {
|
||||||
mat = Material.POTATO;
|
mat = Material.POTATO;
|
||||||
xp = Config.getInstance().getHerbalismXPPotato();
|
xp = Config.getInstance().getHerbalismXPPotato();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user