mine diamonds fix (have to mine 11 instead of 10)

This commit is contained in:
Ben 2016-03-26 22:36:27 +00:00
parent f201898420
commit 23cfa8ec25

View File

@ -88,7 +88,7 @@ public class MineDiamondsGoal extends ObjectiveGoal<FieldsObjective>
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());
}