Added the "You do not have an axe to use." message for trying to chop a fruit tree without an axe
This commit is contained in:
@@ -32,6 +32,11 @@ class FruitTreeChopper : OptionHandler() {
|
|||||||
val plantable = patch.plantable
|
val plantable = patch.plantable
|
||||||
plantable ?: return false
|
plantable ?: return false
|
||||||
|
|
||||||
|
if (SkillingTool.getHatchet(player) == null) {
|
||||||
|
sendMessage(player, "You do not have an axe to use.")
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
val animation = SkillingTool.getHatchet(player).animation
|
val animation = SkillingTool.getHatchet(player).animation
|
||||||
|
|
||||||
submitIndividualPulse(player, object : Pulse(animation.duration) {
|
submitIndividualPulse(player, object : Pulse(animation.duration) {
|
||||||
|
|||||||
Reference in New Issue
Block a user