From 23cfa8ec2528dd49ff02678200c8e2e3e718dbba Mon Sep 17 00:00:00 2001 From: Ben Date: Sat, 26 Mar 2016 22:36:27 +0000 Subject: [PATCH] mine diamonds fix (have to mine 11 instead of 10) --- .../clans/objective/goals/fields/MineDiamondsGoal.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/tutorial/tutorials/clans/objective/goals/fields/MineDiamondsGoal.java b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/tutorial/tutorials/clans/objective/goals/fields/MineDiamondsGoal.java index a52f0bf94..b5e16f6ae 100644 --- a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/tutorial/tutorials/clans/objective/goals/fields/MineDiamondsGoal.java +++ b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/tutorial/tutorials/clans/objective/goals/fields/MineDiamondsGoal.java @@ -88,7 +88,7 @@ public class MineDiamondsGoal extends ObjectiveGoal if (event.getItem().getItemStack().getType() == Material.DIAMOND) { - int count = _playersMap.get(event.getPlayer().getUniqueId()).getAndIncrement(); + int count = _playersMap.get(event.getPlayer().getUniqueId()).incrementAndGet(); if (count == 10) finish(event.getPlayer()); }