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

1.20.6 update draft #246

Merged
merged 18 commits into from
May 30, 2024
Merged

1.20.6 update draft #246

merged 18 commits into from
May 30, 2024

Conversation

Sylfare
Copy link
Contributor

@Sylfare Sylfare commented May 28, 2024

  • Updated Gradle to 8.7, and Java version to 21
  • enums update
  • update ItemParser to parse components instead of NBT
  • resource pack version update

⚠️ packets with non-recognized data (like server-side enchantments) are considered as invalid, so vane-enchantment still need work

Copy link
Owner

@oddlama oddlama left a comment

Choose a reason for hiding this comment

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

Really really huge thanks @Sylfare for making this! This really is a monster sized update this time.

I'll test some things regarding the enchantments right now. I guess in the worst case we need to find a temporary workaround for 1.20.6 and then transition to datapacks as soon as 1.21 comes around (which I hope wont be too far out)

Is there anything else left to do?

} else {
get_module().log.info("Serving official vane resource pack");
try {
Properties properties = new Properties();
properties.load(Core.class.getResourceAsStream("/vane-core.properties"));
url = properties.getProperty("resource_pack_url");
sha1 = properties.getProperty("resource_pack_sha1");
uuid = UUID.nameUUIDFromBytes(sha1.getBytes());
Copy link
Owner

Choose a reason for hiding this comment

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

If I understand this feature correctly, I think we should use a static uuid that we generate once. Then we can set replace(true) to make sure that a new resource pack with a different shasum will replace the old one

@@ -99,8 +99,8 @@ public void load(CompoundTag nbt) {}
@Override
public void setItem(ItemStack itemStack) {
super.setItem(itemStack);

if (itemStack.hasCustomHoverName()) {
// FIXME not sure
Copy link
Owner

Choose a reason for hiding this comment

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

What are you not sure about? I guess you can easily test this by creating a portal and seeing whether the target is shown above the item

@oddlama oddlama merged commit 2e11f9c into oddlama:develop May 30, 2024
1 check passed
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.

2 participants