mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 22:17:17 +00:00
feat: Support Minecraft 1.21.3 on Fabric (#707)
* feat: start database refactor Adds database migrations * feat: support Fabric 1.21.3 * build: target adventure_platform_mod 6.1.0 * Revert "feat: start database refactor" This reverts commit 010a8103 * docs: document server rejoining as a FAQ * locales: improve home privacy UX consistency * feat: fully update to Minecraft 1.21.3 --------- Co-authored-by: [email protected] <wiiiiam278>
This commit is contained in:
1 parent
1a49dd386c
commit
05bcad9249
29 files changed
+79
-59
No files matched your search
@@ -33,7 +33,7 @@ import net.fabricmc.fabric.api.networking.v1.ServerPlayNetworking;
|
||||
import net.fabricmc.loader.api.FabricLoader;
|
||||
import net.fabricmc.loader.api.ModContainer;
|
||||
import net.kyori.adventure.audience.Audience;
|
||||
import net.kyori.adventure.platform.fabric.FabricServerAudiences;
|
||||
import net.kyori.adventure.platform.modcommon.MinecraftServerAudiences;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.registry.RegistryKey;
|
||||
import net.minecraft.registry.RegistryKeys;
|
||||
@@ -123,7 +123,7 @@ public class FabricHuskHomes implements DedicatedServerModInitializer, HuskHomes
|
||||
private Server server;
|
||||
@Nullable
|
||||
private Broker broker;
|
||||
private FabricServerAudiences audiences;
|
||||
private MinecraftServerAudiences audiences;
|
||||
|
||||
@Override
|
||||
public void onInitializeServer() {
|
||||
@@ -145,7 +145,7 @@ public class FabricHuskHomes implements DedicatedServerModInitializer, HuskHomes
|
||||
|
||||
private void onEnable() {
|
||||
// Create adventure audience
|
||||
this.audiences = FabricServerAudiences.of(minecraftServer);
|
||||
this.audiences = MinecraftServerAudiences.of(minecraftServer);
|
||||
|
||||
// Initialize the database
|
||||
final Database.Type type = getSettings().getDatabase().getType();
|
||||
|
||||
@@ -154,7 +154,7 @@ public class FabricUser extends OnlineUser {
|
||||
|
||||
@Override
|
||||
public boolean isMoving() {
|
||||
return player.isTouchingWater() || player.isFallFlying() || player.isSprinting() || player.isSneaking();
|
||||
return player.isTouchingWater() || player.isGliding() || player.isSprinting() || player.isSneaking();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user