1
0
mirror of https://github.com/GeyserMC/Floodgate.git synced 2025-12-28 02:59:16 +00:00

Update to 1.19.3

This commit is contained in:
Camotoy
2022-12-19 14:56:20 -05:00
parent 61372d7967
commit bb45676d89
4 changed files with 12 additions and 9 deletions

View File

@@ -40,11 +40,11 @@ dependencies {
exclude group: 'it.unimi.dsi.fastutil', module: "*"
}
include(modImplementation('cloud.commandframework:cloud-fabric:1.7.0-SNAPSHOT') {
include(modImplementation('cloud.commandframework:cloud-fabric:1.8.0-SNAPSHOT') {
because "Commands library implementation for Fabric"
})
include(modImplementation('net.kyori:adventure-platform-fabric:5.4.0-SNAPSHOT') {
include(modImplementation('net.kyori:adventure-platform-fabric:5.6.0-SNAPSHOT') {
because "Chat library implementation for Fabric that includes methods for communicating with the server"
// Thanks to zml for this fix
// The package modifies Brigadier which causes a LinkageError at runtime if included

View File

@@ -2,14 +2,14 @@
org.gradle.jvmargs=-Xmx2G
# Fabric Properties
# check these on https://modmuss50.me/fabric.html
minecraft_version=1.19
loader_version=0.14.6
minecraft_version=1.19.3
loader_version=0.14.11
# Mod Properties
mod_version=2.2.0-SNAPSHOT
maven_group=org.geysermc.floodgate
archives_base_name=floodgate-fabric
# Dependencies
# check this on https://modmuss50.me/fabric.html
fabric_version=0.55.3+1.19
fabric_version=0.68.1+1.19.3
# Our stuff
lombok_version=1.18.20

View File

@@ -2,7 +2,8 @@ package org.geysermc.floodgate.pluginmessage;
import com.mojang.authlib.properties.Property;
import com.mojang.authlib.properties.PropertyMap;
import net.minecraft.network.protocol.game.ClientboundPlayerInfoPacket;
import net.minecraft.network.protocol.game.ClientboundPlayerInfoRemovePacket;
import net.minecraft.network.protocol.game.ClientboundPlayerInfoUpdatePacket;
import net.minecraft.server.level.ChunkMap;
import net.minecraft.server.level.ServerLevel;
import net.minecraft.server.level.ServerPlayer;
@@ -12,6 +13,8 @@ import org.geysermc.floodgate.mixin.ChunkMapMixin;
import org.geysermc.floodgate.skin.SkinApplier;
import org.geysermc.floodgate.skin.SkinData;
import java.util.Collections;
public final class FabricSkinApplier implements SkinApplier {
@Override
@@ -40,8 +43,8 @@ public final class FabricSkinApplier implements SkinApplier {
entry.removePlayer(otherPlayer);
}
otherPlayer.connection.send(new ClientboundPlayerInfoPacket(ClientboundPlayerInfoPacket.Action.REMOVE_PLAYER, bedrockPlayer));
otherPlayer.connection.send(new ClientboundPlayerInfoPacket(ClientboundPlayerInfoPacket.Action.ADD_PLAYER, bedrockPlayer));
otherPlayer.connection.send(new ClientboundPlayerInfoRemovePacket(Collections.singletonList(bedrockPlayer.getUUID())));
otherPlayer.connection.send(new ClientboundPlayerInfoUpdatePacket(ClientboundPlayerInfoUpdatePacket.Action.ADD_PLAYER, bedrockPlayer));
if (samePlayer) {
continue;
}

View File

@@ -26,6 +26,6 @@
"depends": {
"fabricloader": ">=0.14.6",
"fabric": "*",
"minecraft": ">=1.19"
"minecraft": ">=1.19.3"
}
}