function ENT:PreEntityCopy()
RD_BuildDupeInfo(self.Entity)
if (WireAddon == 1) then
local DupeInfo = Wire_BuildDupeInfo(self.Entity)
if DupeInfo then
duplicator.StoreEntityModifier( self.Entity, "WireDupeInfo", DupeInfo )
end
end
end
function ENT:PostEntityPaste( Player, Ent, CreatedEntities )
RD_ApplyDupeInfo(Ent, CreatedEntities)
if (WireAddon == 1) then
if (Ent.EntityMods) and (Ent.EntityMods.WireDupeInfo) then
Wire_ApplyDupeInfo(Player, Ent, Ent.EntityMods.WireDupeInfo, function(id) return CreatedEntities[id] end)
end
end
end