mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-01-18 16:35:25 +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
d407f85704
commit
a9f800ac68
@ -7,6 +7,8 @@ Key:
|
||||
! Change
|
||||
- Removal
|
||||
|
||||
Version 1.5.00-dev
|
||||
|
||||
Version 1.4.08
|
||||
+ Added a new skill; Alchemy. Special thanks to EasyMFnE for creating this!
|
||||
+ Added SecondaryAbilityType enum, and new SecondaryAbilityWeightedActivationCheckEvent, fired when a secondary ability checkes its activation chances
|
||||
|
@ -451,6 +451,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")); }
|
||||
|
@ -347,6 +347,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);
|
||||
}
|
||||
}
|
||||
|
@ -287,8 +287,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…
x
Reference in New Issue
Block a user