From b4cfbebf3fdfa1310a00549e852f43dd8e4133d6 Mon Sep 17 00:00:00 2001 From: phobia Date: Sat, 2 Apr 2016 22:53:41 +1100 Subject: [PATCH] Fix issue with seeling potatoes --- .../objective/goals/shops/SellPotatoesGoal.java | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/tutorial/tutorials/clans/objective/goals/shops/SellPotatoesGoal.java b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/tutorial/tutorials/clans/objective/goals/shops/SellPotatoesGoal.java index 40a76b4d9..3a6a720d7 100644 --- a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/tutorial/tutorials/clans/objective/goals/shops/SellPotatoesGoal.java +++ b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/tutorial/tutorials/clans/objective/goals/shops/SellPotatoesGoal.java @@ -49,22 +49,13 @@ public class SellPotatoesGoal extends ObjectiveGoal @EventHandler public void onSell(ClansPlayerSellItemEvent event) { - if (contains(event.getPlayer())) - { - if (event.getItem().getType() == Material.POTATO_ITEM) - { + if (contains(event.getPlayer())) { + if (event.getItem().getType() == Material.POTATO_ITEM) { finish(event.getPlayer()); - } - else - { + } else { event.setCancelled(true); UtilPlayer.message(event.getPlayer(), F.main("Tutorial", "You need to sell your potatoes to the Organic Produce NPC!")); } } - else - { - if (event.getItem().getType() == Material.POTATO_ITEM) - event.setCancelled(true); - } } }