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

(WIP) Sponge support #670

Merged
merged 6 commits into from
Oct 13, 2024
Merged

(WIP) Sponge support #670

merged 6 commits into from
Oct 13, 2024

Conversation

SamB440
Copy link
Contributor

@SamB440 SamB440 commented Feb 3, 2024

Adds Sponge support. A lot is copied from the Spigot module as they are fundamentally similar and via runs on Sponge too.

The only conversion util I made is itemstack conversion. Most things can be done via Sponge API or VanillaGradle anyway.

Also fixed use of deprecated java.sourceCompatibility and java.targetCompatibility (need to confirm it compiles to 8 bytecode again).

@SamB440 SamB440 force-pushed the feat/sponge branch 4 times, most recently from 322d9bc to d3ccefc Compare February 7, 2024 16:51
settings.gradle Outdated Show resolved Hide resolved
build.gradle Outdated Show resolved Hide resolved
@SamB440 SamB440 force-pushed the feat/sponge branch 3 times, most recently from 02f90ae to e43d1da Compare February 12, 2024 18:52
@SamB440 SamB440 force-pushed the feat/sponge branch 2 times, most recently from c0ce8a0 to b508456 Compare March 4, 2024 13:19
@SamB440 SamB440 force-pushed the feat/sponge branch 2 times, most recently from d37d660 to 5b45251 Compare March 13, 2024 17:23
@SamB440
Copy link
Contributor Author

SamB440 commented Mar 18, 2024

Update for those unaware: viaversion support doesn't seem to be possible because on Sponge they replace the vanilla handler, instead of adding their own.

@SamB440 SamB440 force-pushed the feat/sponge branch 2 times, most recently from c0694e2 to 09ea2a2 Compare March 22, 2024 18:49
@SamB440 SamB440 force-pushed the feat/sponge branch 2 times, most recently from 09345e9 to ee3f984 Compare May 8, 2024 12:17
@SamB440 SamB440 force-pushed the feat/sponge branch 4 times, most recently from a0fa9f7 to d1f7075 Compare May 24, 2024 16:37
@SamB440 SamB440 force-pushed the feat/sponge branch 2 times, most recently from 46acabd to aaf5959 Compare May 30, 2024 18:00
@SamB440 SamB440 force-pushed the feat/sponge branch 6 times, most recently from 6483acd to b560d70 Compare June 13, 2024 12:12
@SamB440
Copy link
Contributor Author

SamB440 commented Jul 28, 2024

I think I might migrate the current injection stuff to be mixin-based like fabric

@retrooper
Copy link
Owner

Update for those unaware: viaversion support doesn't seem to be possible because on Sponge they replace the vanilla handler, instead of adding their own.

They have fixed this recently.

@retrooper
Copy link
Owner

You can mark this as a PR.

@retrooper
Copy link
Owner

Is this fully functional?

@SamB440
Copy link
Contributor Author

SamB440 commented Sep 23, 2024

Yes

@retrooper retrooper merged commit 0031d6a into retrooper:2.0 Oct 13, 2024
2 checks passed
@retrooper
Copy link
Owner

Thank you a lot for porting PacketEvents to Sponge!

@retrooper
Copy link
Owner

Next update, it should be listed as supported.

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