mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-09 16:45:44 -07:00
Fixed inappropriate inventory full message when woodcutting
This commit is contained in:
parent
cf8b56c0f4
commit
b34e99d156
1 changed files with 2 additions and 2 deletions
|
|
@ -219,8 +219,8 @@ class WoodcuttingListener : InteractionListener {
|
||||||
player.packetDispatch.sendMessage("You do not have an axe to use.")
|
player.packetDispatch.sendMessage("You do not have an axe to use.")
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if (player.inventory.freeSlots() < 1) {
|
if (player.inventory.freeSlots() < 1 && node.isActive) {
|
||||||
player.dialogueInterpreter.sendDialogue("Your inventory is too full to hold any more " + ItemDefinition.forId(resource.getReward()).name.lowercase(Locale.getDefault()) + ".")
|
player.sendMessage("Your inventory is too full to hold any more " + ItemDefinition.forId(resource.getReward()).name.lowercase(Locale.getDefault()) + ".")
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
return node.isActive
|
return node.isActive
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue