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(); 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;
} }