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

feat: Add information about 1.20.5 changes to internals to nms guide #373

Merged
merged 1 commit into from
May 22, 2024

Conversation

Leguan16
Copy link
Contributor

@Leguan16 Leguan16 commented May 4, 2024

I wasn't sure if I should rewrite rather than only adding admonitions. If I should do it lmk.

@Leguan16 Leguan16 changed the title Add information about 1.20.5 changes to internals to nms guide feat: Add information about 1.20.5 changes to internals to nms guide May 4, 2024
docs/paper/dev/misc/internal-code.mdx Outdated Show resolved Hide resolved
docs/paper/dev/misc/internal-code.mdx Outdated Show resolved Hide resolved
docs/paper/dev/misc/internal-code.mdx Outdated Show resolved Hide resolved
@@ -93,7 +107,6 @@ int dataVersion = Bukkit.getUnsafe().getDataVersion();

:::danger[Parsing the version]

You should not parse the version from the package name of classes. This is because CraftBukkit may not be relocated
in the future.
Parsing the version from the package name of classes is no longer possible as of 1.20.5 as Paper stopped relocating the CraftBukkit package. See the [reflection](#reflection) section for more information.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Parsing the version from the package name of classes is no longer possible as of 1.20.5 as Paper stopped relocating the CraftBukkit package. See the [reflection](#reflection) section for more information.
Parsing the version from the package name of classes is no longer possible as of 1.20.5 as Paper stopped relocating the CraftBukkit package. See the [Reflection](#reflection) section for more information.

Copy link
Contributor Author

@Leguan16 Leguan16 May 4, 2024

Choose a reason for hiding this comment

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

why exactly just here? nvm

Copy link
Contributor

Choose a reason for hiding this comment

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

it's the name of the section

Copy link
Contributor Author

Choose a reason for hiding this comment

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

eh, its not really done at other places either.

:::info[Mojang-mapped runtime as of 1.20.5]

As of 1.20.5, Paper ships with a Mojang-mapped runtime instead of reobfuscating the server to Spigot mappings.
For more information, see the [plugin remapping](./project-setup#plugin-remapping) section and [userdev](./userdev#1205) documentation covering these changes.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
For more information, see the [plugin remapping](./project-setup#plugin-remapping) section and [userdev](./userdev#1205) documentation covering these changes.
For more information, see the [Plugin remapping](./project-setup#plugin-remapping) section and [userdev](./userdev#1205) documentation covering these changes.

Copy link
Member

@Machine-Maker Machine-Maker left a comment

Choose a reason for hiding this comment

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

I think making the wording more passive sounds better.

docs/paper/dev/misc/internal-code.mdx Outdated Show resolved Hide resolved
docs/paper/dev/misc/internal-code.mdx Outdated Show resolved Hide resolved
@MiniDigger
Copy link
Member

Broken anchor on source page path = /paper/dev/internals:
-> linking to ./userdev#1205 (resolved as: /paper/dev/userdev#1205)

@Leguan16
Copy link
Contributor Author

ah yeah lol

@Leguan16
Copy link
Contributor Author

Broken anchor on source page path = /paper/dev/internals:
-> linking to ./userdev#1205 (resolved as: /paper/dev/userdev#1205)

fixed xd

@olijeffers0n olijeffers0n merged commit 3715a67 into PaperMC:main May 22, 2024
3 checks passed
@Leguan16 Leguan16 deleted the internals branch May 23, 2024 13:57
@olijeffers0n olijeffers0n self-assigned this May 27, 2024
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

Successfully merging this pull request may close these issues.

None yet

6 participants