Fixed bug where Skull Splitter & Serrated Strikes could be used without

permissions.
This commit is contained in:
GJ
2012-03-29 18:38:59 -04:00
parent 8bbee7fe06
commit e9d1297c17
4 changed files with 5 additions and 4 deletions

View File

@ -104,7 +104,7 @@ public class Excavation {
for (ExcavationTreasure treasure : treasures) {
if (skillLevel >= treasure.getDropLevel()) {
if (random.nextDouble() * 100.0d <= treasure.getDropChance()) {
if (random.nextDouble() * 100 <= treasure.getDropChance()) {
xp += treasure.getXp();
is.add(treasure.getDrop());
}

View File

@ -100,7 +100,7 @@ public class Fishing {
if (LoadProperties.fishingDrops) {
FishingTreasure treasure = rewards.get(random.nextInt(rewards.size()));
if (random.nextDouble() * 100.0d <= treasure.getDropChance()) {
if (random.nextDouble() * 100 <= treasure.getDropChance()) {
Users.getProfile(player).addXP(SkillType.FISHING, treasure.getXp());
theCatch.setItemStack(treasure.getDrop());
}