mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-30 00:56:47 +01:00
Add option to drop extra fish
Allows enabling of old fishing mechanic where fish was always caught, even when a treasure was found
This commit is contained in:
parent
6dec374cb3
commit
19461da815
@ -13,6 +13,7 @@ Version 1.5.00-dev
|
||||
+ Added Acacia and Dark Oak to Woodcutting blocks
|
||||
+ Added Salmon, Clownfish, and Pufferfish to Fishing XP
|
||||
+ Added new flowers and grasses to Herbalism XP
|
||||
+ Added option to config.yml which allows players to always catch fish, even when a treasure is found
|
||||
! Fishing XP now depends on the type of fish.
|
||||
! Woodcutting XP in experience.yml and Woodcutting double drops in config.yml now use the tree species names. Oak is now Generic, and Spruce is now Redwood.
|
||||
! Red_Rose was replaced by Poppy, and so the key in experience.yml has been updated accordingly.
|
||||
|
@ -432,6 +432,7 @@ public class Config extends AutoUpdateConfigLoader {
|
||||
|
||||
/* Fishing */
|
||||
public boolean getFishingDropsEnabled() { return config.getBoolean("Skills.Fishing.Drops_Enabled", true); }
|
||||
public boolean getFishingExtraFish() { return config.getBoolean("Skills.Fishing.Extra_Fish", true); }
|
||||
|
||||
/* Mining */
|
||||
public Material getDetonatorItem() { return Material.matchMaterial(config.getString("Skills.Mining.Detonator_Name", "FLINT_AND_STEEL")); }
|
||||
|
@ -342,6 +342,10 @@ public class FishingManager extends SkillManager {
|
||||
player.sendMessage(LocaleLoader.getString("Fishing.Ability.TH.MagicFound"));
|
||||
}
|
||||
|
||||
if (Config.getInstance().getFishingExtraFish()) {
|
||||
Misc.dropItem(player.getEyeLocation(), fishingCatch.getItemStack());
|
||||
}
|
||||
|
||||
fishingCatch.setItemStack(treasureDrop);
|
||||
}
|
||||
}
|
||||
|
@ -286,8 +286,10 @@ Skills:
|
||||
Excavation:
|
||||
Level_Cap: 0
|
||||
Fishing:
|
||||
Drops_Enabled: true
|
||||
Level_Cap: 0
|
||||
Drops_Enabled: true
|
||||
# Always catch fish, even when treasure is found
|
||||
Extra_Fish: false
|
||||
Herbalism:
|
||||
Level_Cap: 0
|
||||
Prevent_AFK_Leveling: true
|
||||
|
Loading…
Reference in New Issue
Block a user