From 048a9a81b8aeb4e09bca43b8886197ab771115e3 Mon Sep 17 00:00:00 2001 From: Cheese Date: Mon, 14 Dec 2015 16:20:39 +1100 Subject: [PATCH] gadget ammo should no logner be purchasable --- .../core/cosmetic/ui/page/GadgetPage.java | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Plugins/Mineplex.Core/src/mineplex/core/cosmetic/ui/page/GadgetPage.java b/Plugins/Mineplex.Core/src/mineplex/core/cosmetic/ui/page/GadgetPage.java index ffc32a7b4..24dddffa1 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/cosmetic/ui/page/GadgetPage.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/cosmetic/ui/page/GadgetPage.java @@ -294,14 +294,14 @@ public class GadgetPage extends ShopPageBase public void activateGadget(Player player, Gadget gadget) { - if (gadget instanceof ItemGadget) - { - if (getPlugin().getInventoryManager().Get(player).getItemCount(gadget.GetName()) <= 0) - { - purchaseGadget(player, gadget); - return; - } - } +// if (gadget instanceof ItemGadget) +// { +// if (getPlugin().getInventoryManager().Get(player).getItemCount(gadget.GetName()) <= 0) +// { +// purchaseGadget(player, gadget); +// return; +// } +// } playAcceptSound(player); gadget.Enable(player); @@ -311,10 +311,10 @@ public class GadgetPage extends ShopPageBase public void handleRightClick(Player player, Gadget gadget) { - if (gadget instanceof ItemGadget) - { - purchaseGadget(player, gadget); - } +// if (gadget instanceof ItemGadget) +// { +// purchaseGadget(player, gadget); +// } } public void deactivateGadget(Player player, Gadget gadget)