aboutsummaryrefslogtreecommitdiff
path: root/gamemode/inventorysystem/equipment/sh_equipment.lua
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2017-02-18 21:55:55 -0500
committerAlexander Pickering <alexandermpickering@gmail.com>2017-02-18 21:55:55 -0500
commita22cbeddc5f8fb61e87a30aa14ba354de5cf4431 (patch)
tree297c1dbfb23185c5246e1dd7bdec52253a24ba60 /gamemode/inventorysystem/equipment/sh_equipment.lua
parentf4ee62bb0725a3ae94477b2818071f506e4dfd9f (diff)
downloadartery-a22cbeddc5f8fb61e87a30aa14ba354de5cf4431.tar.gz
artery-a22cbeddc5f8fb61e87a30aa14ba354de5cf4431.tar.bz2
artery-a22cbeddc5f8fb61e87a30aa14ba354de5cf4431.zip
Updates
Diffstat (limited to 'gamemode/inventorysystem/equipment/sh_equipment.lua')
-rw-r--r--gamemode/inventorysystem/equipment/sh_equipment.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/gamemode/inventorysystem/equipment/sh_equipment.lua b/gamemode/inventorysystem/equipment/sh_equipment.lua
index 3c30df15..793eeac 100644
--- a/gamemode/inventorysystem/equipment/sh_equipment.lua
+++ b/gamemode/inventorysystem/equipment/sh_equipment.lua
@@ -4,6 +4,7 @@
local itm = nrequire("item.lua")
local ste = nrequire("utility/stream.lua")
local inventory = nrequire("inventory/inventory.lua")
+local col = nrequire("config/colortheme.lua")
print("Got invnetory table, it is:")
PrintTable(inventory)
local slots = {
@@ -77,7 +78,7 @@ end
inv.Put = function(self,position,item)
self.equiped[position[1]] = item
- if item.onEquip then item:onEquip(self.owner) end
+ if item.onEquip then item:onEquip(self.Owner) end
end
inv.Has = function(self,string_or_compare_func)
@@ -97,7 +98,7 @@ end
inv.Remove = function(self,position)
local item = self.equiped[position[1]]
- if item.onUnEquip then item:onUnEquip(self.owner) end
+ if item.onUnEquip then item:onUnEquip(self.Owner) end
self.equiped[position[1]] = nil
end