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

Add additional tags to ItemMeta obfuscation filtering #9665

Merged
merged 1 commit into from
Oct 14, 2023

Conversation

Sytm
Copy link
Contributor

@Sytm Sytm commented Aug 28, 2023

Fixes #9451

(Is blacklist filtering even feasible like Machine said in the linked issue or would it be too much work to cover all edge cases?)

@Sytm Sytm requested a review from a team as a code owner August 28, 2023 17:32
@electronicboy
Copy link
Member

Filtering custom model data is a no go

Copy link
Member

@Owen1212055 Owen1212055 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing CustomModelData will change the look of the item for other players. That should not be removed like that.

@Sytm
Copy link
Contributor Author

Sytm commented Aug 28, 2023

That's why I deliberately put it inside the hideItemmetaWithVisualEffects block (or is this 100% never intended to happen?, then mb)

@electronicboy
Copy link
Member

visual effects are generally more trivial things, idk how a lode compass appears differently to others if it has a pos or not, but, CMD is purely intended to allow people to change how items look in general using datapacks, etc; it being removed ever sounds like a stupidly niche edge-case at best

@Sytm Sytm force-pushed the more-item-meta-obfuscation branch from de15d58 to 707fcc7 Compare August 28, 2023 17:48
Copy link
Member

@NoahvdAa NoahvdAa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

idk how a lode compass appears differently to others if it has a pos or not

it just shows as spinning

@@ -107,6 +111,8 @@ index a5cf00a41c61cc9f851781cc4f55c9bb47c2f5b6..f306c9e8f46d80d4c4fdc671e3754b3f
+ // the position and fake the dimension
+ tag.putString("LodestoneDimension", "paper:paper");
+ }
+ // The id of a filled map
+ tag.remove("map");
Copy link
Member

@NoahvdAa NoahvdAa Aug 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What changes visually when this tag is missing?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vanilla does not have any visual changes, but some mods which aren't necessarily cheats could behave differently.

@lynxplay lynxplay merged commit 852c1c2 into PaperMC:master Oct 14, 2023
1 check passed
@Sytm Sytm deleted the more-item-meta-obfuscation branch October 14, 2023 21:44
lynxplay pushed a commit to lynxplay/paper that referenced this pull request Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Merged
Development

Successfully merging this pull request may close these issues.

[Feature] Better Offuscation
6 participants