mirror of
https://github.com/GeyserMC/Floodgate.git
synced 2025-12-29 11:39:16 +00:00
Update to 1.19.3
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -26,6 +26,6 @@
|
||||
"depends": {
|
||||
"fabricloader": ">=0.14.6",
|
||||
"fabric": "*",
|
||||
"minecraft": ">=1.19"
|
||||
"minecraft": ">=1.19.3"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user