1
0
mirror of https://github.com/CFC-Servers/material-editor-tool.git synced 2025-03-04 03:13:00 -05:00

Fix dumb NW2 bug

This commit is contained in:
Redox 2024-01-03 23:38:01 +01:00
parent 096c5ff392
commit 8eb027f7d2

View File

@ -71,7 +71,10 @@ function advMat_Table:Set( ent, texture, data )
data.texture = texture
if SERVER then
ent:SetNW2String( "AdvMaterialCRC", util.CRC( tostring( {} ) ) )
timer.Simple( 0, function()
if not IsValid( ent ) then return end
ent:SetNW2String( "AdvMaterialCRC", util.CRC( tostring( {} ) ) )
end )
self:ResetAdvMaterial( ent )