Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
063c87c4fe
@ -294,14 +294,14 @@ public class GadgetPage extends ShopPageBase<CosmeticManager, CosmeticShop>
|
|||||||
|
|
||||||
public void activateGadget(Player player, Gadget gadget)
|
public void activateGadget(Player player, Gadget gadget)
|
||||||
{
|
{
|
||||||
if (gadget instanceof ItemGadget)
|
// if (gadget instanceof ItemGadget)
|
||||||
{
|
// {
|
||||||
if (getPlugin().getInventoryManager().Get(player).getItemCount(gadget.GetName()) <= 0)
|
// if (getPlugin().getInventoryManager().Get(player).getItemCount(gadget.GetName()) <= 0)
|
||||||
{
|
// {
|
||||||
purchaseGadget(player, gadget);
|
// purchaseGadget(player, gadget);
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
playAcceptSound(player);
|
playAcceptSound(player);
|
||||||
gadget.Enable(player);
|
gadget.Enable(player);
|
||||||
@ -311,10 +311,10 @@ public class GadgetPage extends ShopPageBase<CosmeticManager, CosmeticShop>
|
|||||||
|
|
||||||
public void handleRightClick(Player player, Gadget gadget)
|
public void handleRightClick(Player player, Gadget gadget)
|
||||||
{
|
{
|
||||||
if (gadget instanceof ItemGadget)
|
// if (gadget instanceof ItemGadget)
|
||||||
{
|
// {
|
||||||
purchaseGadget(player, gadget);
|
// purchaseGadget(player, gadget);
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
public void deactivateGadget(Player player, Gadget gadget)
|
public void deactivateGadget(Player player, Gadget gadget)
|
||||||
|
Loading…
Reference in New Issue
Block a user