Fixed issue #115

No more bug abuse by a certain somebody :3
This commit is contained in:
Jamix77 2020-02-26 21:20:39 +00:00
parent 8559398e83
commit 5a20e4f7fa

View file

@ -506,7 +506,10 @@ public class ShootingStarPlugin extends OptionHandler {
} else {
star.incrementStardust();
}
player.getInventory().add(new Item(STAR_DUST, 1));
if (ShootingStarPlugin.getStarDust(player) < 200) {
player.getInventory().add(new Item(STAR_DUST, 1));
}
player.getSkills().addExperience(Skills.MINING, star.getExp());
if (star.getMinedStardust() >= star.getTotalStardust()) {
Location loc = object.getLocation();