mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-09-19 02:57:53 +02:00
Fix bug where Green Thumb did not replant if seeds were solely in the offhand Fixes #4994
This commit is contained in:
@@ -16,9 +16,7 @@ public class SubSkillEvent extends McMMOPlayerSkillEvent implements Cancellable
|
||||
* Only skills using the old system will fire this event
|
||||
* @param player target player
|
||||
* @param subSkillType target subskill
|
||||
* @Deprecated Skills will be using a new system stemming from the AbstractSubSkill class so make sure you check for both events, this event will be removed eventually.
|
||||
*/
|
||||
@Deprecated
|
||||
public SubSkillEvent(Player player, SubSkillType subSkillType) {
|
||||
super(player, mcMMO.p.getSkillTools().getPrimarySkillBySubSkill(subSkillType));
|
||||
this.subSkillType = subSkillType;
|
||||
@@ -29,9 +27,7 @@ public class SubSkillEvent extends McMMOPlayerSkillEvent implements Cancellable
|
||||
* @param player target player
|
||||
* @param subSkillType target subskill
|
||||
* @param resultModifier a value multiplied against the final result of the dice roll, typically between 0-1.0
|
||||
* @Deprecated Skills will be using a new system stemming from the AbstractSubSkill class so make sure you check for both events, this event will be removed eventually.
|
||||
*/
|
||||
@Deprecated
|
||||
public SubSkillEvent(Player player, SubSkillType subSkillType, double resultModifier) {
|
||||
super(player, mcMMO.p.getSkillTools().getPrimarySkillBySubSkill(subSkillType));
|
||||
this.subSkillType = subSkillType;
|
||||
|
Reference in New Issue
Block a user