mirror of
https://github.com/CapsAdmin/pac3.git
synced 2025-03-04 03:03:01 -05:00
fix for not handling removing parts correctly
This commit is contained in:
parent
fd4664ad96
commit
fa6ff8c3e1
@ -334,14 +334,6 @@ function pace.HandleReceivedData(ply, data)
|
||||
data.owner = ply
|
||||
data.uid = pac.Hash(ply)
|
||||
|
||||
local removing = data.part == "__ALL__"
|
||||
|
||||
if removing then
|
||||
pac.Message("Clearing Oufit from ", ply)
|
||||
else
|
||||
pac.Message("Received pac group ", data.partID or 0 , "/", data.totalParts or 0, " from ", ply)
|
||||
end
|
||||
|
||||
if data.wear_filter and #data.wear_filter > game.MaxPlayers() then
|
||||
pac.Message("Player ", ply, " tried to submit extraordinary wear filter size of ", #data.wear_filter, ", dropping.")
|
||||
data.wear_filter = nil
|
||||
@ -350,8 +342,12 @@ function pace.HandleReceivedData(ply, data)
|
||||
if istable(data.part) and data.part.self then
|
||||
if istable(data.part.self) and not data.part.self.UniqueID then return end -- bogus data
|
||||
|
||||
pac.Message("Received pac group ", data.partID or 0 , "/", data.totalParts or 0, " from ", ply)
|
||||
pace.SubmitPartNotify(data)
|
||||
elseif isstring(data.part) then
|
||||
local clearing = data.part == "__ALL__"
|
||||
|
||||
pac.Message("Clearing ", clearing and "Oufit" or "Part" , " from ", ply)
|
||||
pace.RemovePart(data)
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user