mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-05 16:49:04 +00:00
Fix the default return value for equipped_weapon
This commit is contained in:
@@ -58,7 +58,7 @@ class EquipmentUtil
|
|||||||
item = source.equipment.get(EquipmentConstants::WEAPON)
|
item = source.equipment.get(EquipmentConstants::WEAPON)
|
||||||
|
|
||||||
if item.nil?
|
if item.nil?
|
||||||
return NAMED_WEAPONS[:no_weapon]
|
return NAMED_WEAPONS[:unarmed]
|
||||||
end
|
end
|
||||||
|
|
||||||
WEAPONS[item.id]
|
WEAPONS[item.id]
|
||||||
|
|||||||
Reference in New Issue
Block a user