Fixed busted item crash.

This commit is contained in:
Nick Winter 2014-11-20 11:59:49 -08:00
parent df51e28a1d
commit 79ac94d84a

View file

@ -224,8 +224,8 @@ module.exports = class LankBoss extends CocoClass
item = @world.getThangByID itemID
unless item.equipped
console.log thang.id, 'equipping', item, 'in', thang.slot, 'Surface-side, but it cannot equip?' unless item.equip
item.equip()
itemsJustEquipped.push item
item.equip?()
itemsJustEquipped.push item if item.equip
return itemsJustEquipped
cacheObstacles: (updatedObstacles=null) ->