mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +01:00
Try to fix visibility of hair on disguised players
This commit is contained in:
parent
9f7050ef28
commit
559b8d2e6e
1 changed files with 6 additions and 0 deletions
|
@ -11,6 +11,7 @@ import net.minecraft.client.MinecraftClient;
|
||||||
import net.minecraft.client.network.AbstractClientPlayerEntity;
|
import net.minecraft.client.network.AbstractClientPlayerEntity;
|
||||||
import net.minecraft.client.network.ClientPlayNetworkHandler;
|
import net.minecraft.client.network.ClientPlayNetworkHandler;
|
||||||
import net.minecraft.client.network.PlayerListEntry;
|
import net.minecraft.client.network.PlayerListEntry;
|
||||||
|
import net.minecraft.client.render.entity.PlayerModelPart;
|
||||||
import net.minecraft.client.world.ClientWorld;
|
import net.minecraft.client.world.ClientWorld;
|
||||||
import net.minecraft.entity.EquipmentSlot;
|
import net.minecraft.entity.EquipmentSlot;
|
||||||
import net.minecraft.entity.player.PlayerEntity;
|
import net.minecraft.entity.player.PlayerEntity;
|
||||||
|
@ -63,6 +64,11 @@ public class DummyClientPlayerEntity extends AbstractClientPlayerEntity implemen
|
||||||
return !InteractionManager.instance().isClientPlayer(getMaster());
|
return !InteractionManager.instance().isClientPlayer(getMaster());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isPartVisible(PlayerModelPart modelPart) {
|
||||||
|
return owner == null ? super.isPartVisible(modelPart) : owner.isPartVisible(modelPart);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Nullable
|
@Nullable
|
||||||
public PlayerEntity getMaster() {
|
public PlayerEntity getMaster() {
|
||||||
|
|
Loading…
Reference in a new issue