Added support for cloth color with the super pickaxe drops.

This commit is contained in:
sk89q
2011-01-17 20:30:54 -08:00
parent 75c21623da
commit a63ffc2fe4
5 changed files with 43 additions and 59 deletions

View File

@ -157,16 +157,10 @@ public class BukkitWorld extends LocalWorld {
}
@Override
public void dropItem(Vector pt, int type, int count) {
ItemStack item = new ItemStack(type, count);
world.dropItemNaturally(toLocation(pt), item);
}
@Override
public void dropItem(Vector pt, int type) {
ItemStack item = new ItemStack(type, 1);
world.dropItemNaturally(toLocation(pt), item);
public void dropItem(Vector pt, BaseItemStack item) {
ItemStack bukkitItem = new ItemStack(item.getType(), item.getAmount(),
(byte)item.getDamage());
world.dropItemNaturally(toLocation(pt), bukkitItem);
}