mirror of
https://github.com/shadowscion/Prop2Mesh.git
synced 2025-03-04 03:13:03 -05:00
export check and clear cache
remove useless CPPI check on client change cache clear timer from 300 to 60 seconds
This commit is contained in:
parent
5e41f6742a
commit
0ecd684c6b
@ -53,7 +53,7 @@ end)
|
||||
timer.Create("prop2trash", 60, 0, function()
|
||||
local curtime = SysTime()
|
||||
for crc, usedtime in pairs(garbage) do
|
||||
if curtime - usedtime > 300 then
|
||||
if curtime - usedtime > 60 then
|
||||
if recycle[crc] and recycle[crc].meshes then
|
||||
for uniqueID, meshdata in pairs(recycle[crc].meshes) do
|
||||
if meshdata.basic then
|
||||
|
@ -388,8 +388,10 @@ net.Receive("prop2mesh_export", function()
|
||||
end)
|
||||
|
||||
local function CanToolClient(ent)
|
||||
if not CPPI then return true end
|
||||
return IsValid(ent) and ent.CPPICanTool and ent.CPPICanTool(LocalPlayer(), "prop2mesh")
|
||||
return true
|
||||
--if not CPPI then return true end
|
||||
--return IsValid( ent ) and ent.CPPIGetOwner and ent:CPPIGetOwner() == LocalPlayer()
|
||||
--return IsValid(ent) and ent.CPPICanTool and ent:CPPICanTool(LocalPlayer(), "prop2mesh")
|
||||
end
|
||||
|
||||
--[[
|
||||
|
Loading…
Reference in New Issue
Block a user