mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +01:00
Fixing merge issues, again.
This commit is contained in:
parent
0249ae2724
commit
793bd04afe
@ -277,10 +277,10 @@ public class Herbalism {
|
||||
}
|
||||
}
|
||||
else if (mat == Material.CARROT) {
|
||||
is = new ItemStack(Material.CARROT_ITEM, 1, (short) 0);
|
||||
is = new ItemStack(Material.CARROT_ITEM);
|
||||
}
|
||||
else if (mat == Material.POTATO) {
|
||||
is = new ItemStack(Material.POTATO_ITEM, 1, (short) 0);
|
||||
is = new ItemStack(Material.POTATO_ITEM);
|
||||
}
|
||||
else {
|
||||
is = new ItemStack(mat);
|
||||
@ -467,11 +467,11 @@ public class Herbalism {
|
||||
break;
|
||||
case COCOA:
|
||||
try {
|
||||
Misc.dropItem(location, new ItemStack(Material.INK_SACK, 3, DyeColor.BROWN.getDyeData()));
|
||||
Misc.dropItems(location, new ItemStack(Material.INK_SACK, 1, DyeColor.BROWN.getDyeData()), 3);
|
||||
inventory.removeItem(new ItemStack(Material.INK_SACK, 1, DyeColor.BROWN.getDyeData()));
|
||||
}
|
||||
catch(Exception e) {
|
||||
Misc.dropItem(location, new ItemStack(Material.INK_SACK, 3, (short) 3));
|
||||
Misc.dropItems(location, new ItemStack(Material.INK_SACK, 1, (short) 3), 3);
|
||||
inventory.removeItem(new ItemStack(Material.INK_SACK, 1, (short) 3));
|
||||
}
|
||||
break;
|
||||
@ -487,7 +487,7 @@ public class Herbalism {
|
||||
inventory.removeItem(new ItemStack(Material.POTATO_ITEM));
|
||||
break;
|
||||
case NETHER_WARTS:
|
||||
Misc.dropItem(location, new ItemStack(Material.NETHER_STALK, 2));
|
||||
Misc.dropItems(location, new ItemStack(Material.NETHER_STALK), 2);
|
||||
Misc.randomDropItems(location, new ItemStack(Material.NETHER_STALK), 50, 2);
|
||||
inventory.removeItem(new ItemStack(Material.NETHER_STALK));
|
||||
break;
|
||||
|
@ -5,6 +5,7 @@ import java.util.List;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.bukkit.inventory.PlayerInventory;
|
||||
@ -165,7 +166,7 @@ public class SimpleRepairManager implements RepairManager {
|
||||
item.setAmount(item.getAmount() - 1);
|
||||
}
|
||||
else {
|
||||
item = new ItemStack(0);
|
||||
item = new ItemStack(Material.AIR);
|
||||
}
|
||||
|
||||
// I suspect this may not be needed, but I don't think it hurts
|
||||
|
Loading…
Reference in New Issue
Block a user