mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-21 18:15:32 +01:00
Correctly populate goal object amount
This commit is contained in:
parent
f9a1c2961c
commit
18f571e3ee
@ -58,8 +58,8 @@ public class BukkitObjective implements Objective {
|
|||||||
this.goal = ((BukkitCountableMob) goalObj).getCount();
|
this.goal = ((BukkitCountableMob) goalObj).getCount();
|
||||||
} else if (goalObj instanceof Integer) {
|
} else if (goalObj instanceof Integer) {
|
||||||
this.goal = (int) goalObj;
|
this.goal = (int) goalObj;
|
||||||
} else if (progressObj instanceof BlockItemStack) {
|
} else if (goalObj instanceof BlockItemStack) {
|
||||||
this.goal = ((BlockItemStack) progressObj).getAmount();
|
this.goal = ((BlockItemStack) goalObj).getAmount();
|
||||||
} else {
|
} else {
|
||||||
this.goal = 0;
|
this.goal = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user