mine diamonds fix (have to mine 11 instead of 10)
This commit is contained in:
parent
f201898420
commit
23cfa8ec25
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user