aboutsummaryrefslogtreecommitdiff
path: root/entities
diff options
context:
space:
mode:
Diffstat (limited to 'entities')
-rw-r--r--entities/entities/art_chest/cl_init.lua9
-rw-r--r--entities/entities/art_chest/init.lua2
2 files changed, 1 insertions, 10 deletions
diff --git a/entities/entities/art_chest/cl_init.lua b/entities/entities/art_chest/cl_init.lua
index 89745c0..232010c 100644
--- a/entities/entities/art_chest/cl_init.lua
+++ b/entities/entities/art_chest/cl_init.lua
@@ -21,15 +21,6 @@ end
local oldpanel = nil
local namecache = {}
-net.Receive("informchestname",function()
- local e = net.ReadEntity()
- local s = net.ReadString()
- namecache[e] = s
- if oldpanel ~= nil then
- oldpanel:SetTitle(s)
- end
-end)
-
net.Receive("openchestinv",function(len,ply)
if oldpanel ~= nil then oldpanel:Remove() end
print("Opening chest inventory")
diff --git a/entities/entities/art_chest/init.lua b/entities/entities/art_chest/init.lua
index f33b57a..e2d70e1 100644
--- a/entities/entities/art_chest/init.lua
+++ b/entities/entities/art_chest/init.lua
@@ -21,7 +21,7 @@ function ENT:Initialize()
inventories = {}
}
- local myinv = inv.CreateInventory("Shaped Inventory")
+ local myinv = inv.CreateInventory(self.InvType or "Shaped Inventory")
myinv.Owner = self
timer.Simple(0, function()