mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +01:00
Fixed crash a player tries to disguise themselves as another player
This commit is contained in:
parent
5001a52e41
commit
85623bd1c0
1 changed files with 5 additions and 2 deletions
|
@ -1,12 +1,13 @@
|
|||
package com.minelittlepony.unicopia.entity.player.dummy;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import com.minelittlepony.unicopia.InteractionManager;
|
||||
import com.minelittlepony.unicopia.Owned;
|
||||
import com.mojang.authlib.GameProfile;
|
||||
|
||||
import net.fabricmc.fabric.api.networking.v1.PacketByteBufs;
|
||||
import net.minecraft.client.MinecraftClient;
|
||||
import net.minecraft.client.network.AbstractClientPlayerEntity;
|
||||
import net.minecraft.client.network.ClientPlayNetworkHandler;
|
||||
|
@ -75,7 +76,9 @@ public class DummyClientPlayerEntity extends AbstractClientPlayerEntity implemen
|
|||
}
|
||||
|
||||
private final class Packet extends PlayerListS2CPacket {
|
||||
public Packet() { super(PacketByteBufs.empty()); }
|
||||
public Packet() {
|
||||
super(PlayerListS2CPacket.Action.ADD_PLAYER, List.of());
|
||||
}
|
||||
|
||||
PlayerListS2CPacket.Entry entry() {
|
||||
return new PlayerListS2CPacket.Entry(
|
||||
|
|
Loading…
Reference in a new issue