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

Updated to 1.21.3 #75

Merged
merged 5 commits into from
Jan 5, 2025
Merged

Updated to 1.21.3 #75

merged 5 commits into from
Jan 5, 2025

Conversation

AlexDerProGamer
Copy link
Contributor

I updated all dependecies to 1.21.3 and fixed the issue that appeared after doing so. I only tested the project as a fabric mod (not paper plugin) and I'm unsure if Bukkit.getEntity(nmsEntity.getUUID()); (nmsEntity.getBukkitSender(null); was removed) works.
I also didn't manage to run cargo build on the core directory because cmake threw an error, so i copied the natives from the 3.0.5 version (from modrinth) to my built test mod.

If there's something that I forgot or does not work correctly let me know!
Great mod/plugin btw, keep it up!

Copy link
Owner

@amsam0 amsam0 left a comment

Choose a reason for hiding this comment

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

Thank you for the PR! I wasn't aware of any issues on 1.21+. Are there issues or does this just improve the code?

buildSrc/src/main/kotlin/Properties.kt Outdated Show resolved Hide resolved
@@ -75,7 +75,7 @@ else if (sender instanceof CommandContext<?> context) {
}

public void sendMessage(Player player, String message) {
((PlayerEntity) player.getPlayer()).sendMessage(toNative(mm(message)));
((PlayerEntity) player.getPlayer()).sendMessage(toNative(mm(message)), false);
Copy link
Owner

Choose a reason for hiding this comment

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

Will this break on older versions?

@AlexDerProGamer
Copy link
Contributor Author

the mod didn't work on fabric 1.21.3 and threw an exception
i will check if the updated code works on all older versions (fabric and paper)

@amsam0
Copy link
Owner

amsam0 commented Nov 14, 2024

What was the exception? I do not see the benefit of the paper changes and the fabric changes seem like they would have no effect.

Edit: if getBukkitSender was removed, we can try to find a replacement. Bukkit.getEntity won't work iirc

@AlexDerProGamer
Copy link
Contributor Author

image
the fabric method sendMessage() requires since the update a boolean value for the overlay option (i think they mean the text over the hotbar, not sure though)

@amsam0
Copy link
Owner

amsam0 commented Nov 15, 2024

The overlay argument isn't optional?

@AlexDerProGamer
Copy link
Contributor Author

it looks like, it's not

@amsam0
Copy link
Owner

amsam0 commented Nov 16, 2024

That won't work with earlier versions then. Either we need an alternative (maybe there's a sendMessage function in another type that doesn't have the overlay argument) or use reflection on older version

@amsam0 amsam0 mentioned this pull request Nov 21, 2024
@amsam0
Copy link
Owner

amsam0 commented Nov 28, 2024

@AlexDerProGamer Any chance of this PR being completed? If not, I can take over

@AlexDerProGamer
Copy link
Contributor Author

Currently I have no time to work on it. I think it would be best if you complete it.

@Gaming32
Copy link

Gaming32 commented Dec 9, 2024

If you could complete this, that would be great.

@amsam0
Copy link
Owner

amsam0 commented Dec 10, 2024

I do plan to complete this. I don't know when I'll have enough free time. I haven't forgotten about it - bugging me about it makes me less likely to work on it.

@Gaming32
Copy link

Not trying to bug you. Just reminding you about it in case you did forget (there was no way to know).

@amsam0
Copy link
Owner

amsam0 commented Dec 10, 2024

Thanks for the reminder. I am currently quite busy and this project is very low priority for my limited free time, mainly due to a lack of motivation (see the project status update). It may be a few weeks or up to a month until I get to it.

@Gaming32
Copy link

Fortunately I was able to get this PR up and running for the meantime.

@amsam0 amsam0 mentioned this pull request Dec 22, 2024
@amsam0
Copy link
Owner

amsam0 commented Jan 5, 2025

Thank you for the initial work @AlexDerProGamer! I am now merging and will make a release

@amsam0 amsam0 merged commit f249e75 into amsam0:main Jan 5, 2025
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.

3 participants