mirror of
https://github.com/CapsAdmin/pac3.git
synced 2025-03-04 03:03:01 -05:00
Account for file.Open returning nil
This commit is contained in:
parent
e78fb28d75
commit
94f90fd08b
@ -22,11 +22,11 @@ end
|
||||
function CACHE:AddItem(itemId, data)
|
||||
local hash = self:GetItemIdHash (itemId)
|
||||
local path = self.Path .. "/" .. hash .. ".txt"
|
||||
|
||||
local key = self:GetItemIdEncryptionKey (itemId)
|
||||
|
||||
-- Version
|
||||
local f = file.Open (path, "wb", "DATA")
|
||||
if not f then return end
|
||||
f:WriteLong (self.Version)
|
||||
|
||||
-- Header
|
||||
|
Loading…
Reference in New Issue
Block a user