Correctly populate goal object amount

This commit is contained in:
PikaMug 2024-08-03 17:20:30 -04:00
parent f9a1c2961c
commit 18f571e3ee

View File

@ -58,8 +58,8 @@ public class BukkitObjective implements Objective {
this.goal = ((BukkitCountableMob) goalObj).getCount();
} else if (goalObj instanceof Integer) {
this.goal = (int) goalObj;
} else if (progressObj instanceof BlockItemStack) {
this.goal = ((BlockItemStack) progressObj).getAmount();
} else if (goalObj instanceof BlockItemStack) {
this.goal = ((BlockItemStack) goalObj).getAmount();
} else {
this.goal = 0;
}