mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-02 08:39:49 +01:00
Support for auto-replanting cocoa.
This commit is contained in:
parent
67b63f84f1
commit
74c3ce0552
@ -422,12 +422,11 @@ public class Herbalism {
|
|||||||
hasSeeds = inventory.contains(Material.SEEDS);
|
hasSeeds = inventory.contains(Material.SEEDS);
|
||||||
break;
|
break;
|
||||||
case COCOA:
|
case COCOA:
|
||||||
// Broken: Requires an update to bukkit to enable seaching for variable-sized ItemStacks.
|
|
||||||
try {
|
try {
|
||||||
hasSeeds = inventory.contains(new ItemStack(Material.INK_SACK, 1, DyeColor.BROWN.getDyeData()), 1);
|
hasSeeds = inventory.containsAtLeast(new ItemStack(Material.INK_SACK, 1, DyeColor.BROWN.getDyeData()), 1);
|
||||||
}
|
}
|
||||||
catch(Exception e) {
|
catch(Exception e) {
|
||||||
hasSeeds = inventory.contains(new ItemStack(Material.INK_SACK, 1, (short) 3), 1);
|
hasSeeds = inventory.containsAtLeast(new ItemStack(Material.INK_SACK, 1, (short) 3), 1);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case CARROT:
|
case CARROT:
|
||||||
|
Loading…
Reference in New Issue
Block a user