mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-28 18:06:42 +00:00
Added support for cloth color with the super pickaxe drops.
This commit is contained in:
@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user