Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you ignore properties when patching? #265

Open
seiyria opened this issue Dec 6, 2020 · 0 comments
Open

How do you ignore properties when patching? #265

seiyria opened this issue Dec 6, 2020 · 0 comments

Comments

@seiyria
Copy link

seiyria commented Dec 6, 2020

Right now I'm doing this:

      this.playerPatchQueue[player.username].patches.push(...patch.patches.filter(p => {

        // ideally, it would not generate these patches, but we take what we can
        return !p.path.includes('_') && !p.path.includes('createdAt') && !p.path.includes('currentTick') && !p.path.includes('fov');
      }));

But it's not ideal. I'd really like to have a way to have FJP not generate patches for these properties elsewhere if possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant