PC-265
This commit is contained in:
parent
a1fc6bd20f
commit
4f77413523
@ -147,12 +147,12 @@ public class MorphVillager extends MorphGadget implements IThrown
|
|||||||
{
|
{
|
||||||
if (_gems.contains(event.getItem()))
|
if (_gems.contains(event.getItem()))
|
||||||
{
|
{
|
||||||
event.setCancelled(true);
|
Manager.getDonationManager().rewardCurrency(GlobalCurrency.GEM, event.getPlayer(), getName() + " Pickup", 16 * event.getItem().getItemStack().getAmount());
|
||||||
event.getItem().remove();
|
|
||||||
|
|
||||||
Manager.getDonationManager().rewardCurrency(GlobalCurrency.GEM, event.getPlayer(), getName() + " Pickup", 16);
|
|
||||||
|
|
||||||
event.getPlayer().getWorld().playSound(event.getPlayer().getLocation(), Sound.ORB_PICKUP, 1f, 2f);
|
event.getPlayer().getWorld().playSound(event.getPlayer().getLocation(), Sound.ORB_PICKUP, 1f, 2f);
|
||||||
|
|
||||||
|
event.setCancelled(true);
|
||||||
|
event.getItem().remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user