Change Diamond ore drops to diamonds

This commit is contained in:
Sam 2017-04-05 21:35:04 +01:00
parent fff18ef2a0
commit 1f1ad4c441

View File

@ -1083,7 +1083,7 @@ public class Bridge extends TeamGame implements OreObsfucation
event.setSpawnDrop(false);
event.getBlock().setType(Material.AIR);
Item item = event.getBlock().getWorld().dropItem(event.getBlock().getLocation().add(.5, .5, .5), new ItemStack(Material.DIAMOND_ORE));
Item item = event.getBlock().getWorld().dropItem(event.getBlock().getLocation().add(.5, .5, .5), new ItemStack(Material.DIAMOND));
item.setMetadata("owner", new FixedMetadataValue(Manager.getPlugin(), event.getPlayer().getUniqueId()));
}