WiIIiam278 / HuskSync

A modern, cross-server player data synchronisation system
https://william278.net/project/husksync
Apache License 2.0
160 stars 128 forks source link

Support Fabric 1.21 #339

Closed hui1601 closed 1 week ago

hui1601 commented 2 months ago

I've patched the code to reflect the breaking changes in the Fabric API and to match Minecraft 1.21.

NOTE: Please test carefully as I don't have time to test that all the features work.

WiIIiam278 commented 2 months ago

Thanks, but I currently just want to support 1.20.1 as that's the one with cobblemon and all the mods on :)

However, will keep this in mind on the side for the moment as this will become relevant in the near future.

EliasB-NU commented 1 month ago

I compiled it myself and are running it on my server, works perfectly fine.

Rozbiynk commented 1 month ago

cant build latest commits изображение

hui1601 commented 1 month ago

@Rozbiynk That's a error related with the network status. But, the master branch changes cause build other errors.

try below changes with latest commit.(I havn't tested this)

diff --git a/build.gradle b/build.gradle
index 86ac9d9..d993b38 100644
--- a/build.gradle
+++ b/build.gradle
@@ -131,7 +131,7 @@ subprojects {
     }

     // API publishing
-    if (['common', 'bukkit', 'fabric'].contains(project.name)) {
+    if (['common', 'fabric'].contains(project.name)) {
         java {
             withSourcesJar()
             withJavadocJar()
@@ -158,19 +158,6 @@ subprojects {
                 }
             }

-            if (['bukkit'].contains(project.name)) {
-                publications {
-                    mavenJavaBukkit(MavenPublication) {
-                        groupId = 'net.william278.husksync'
-                        artifactId = 'husksync-bukkit'
-                        version = "$rootProject.version"
-                        artifact shadowJar
-                        artifact sourcesJar
-                        artifact javadocJar
-                    }
-                }
-            }
-
             if (['fabric'].contains(project.name)) {
                 publications {
                     mavenJavaFabric(MavenPublication) {
diff --git a/settings.gradle b/settings.gradle
index fefb698..7d487df 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -8,7 +8,5 @@ pluginManagement {
 rootProject.name = 'HuskSync'
 include(
         'common',
-        'bukkit',
-        'paper',
         'fabric'
-)
\ No newline at end of file
+)
Rozbiynk commented 1 month ago

look like it compiled изображение

La1m1e commented 1 month ago

Locked map sync doesnt work for me. Also sends this message every time i switch servers or log off image

La1m1e commented 1 month ago

Locked map sync doesnt work for me. Also sends this message every time i switch servers or log off image

Also it resets my coordinates in each server to ones on which i joined the first time, while inventory and other things sync