mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +01:00
Fixed exception when rendering the cuccoon
This commit is contained in:
parent
8e8b539fad
commit
aaee3e48cd
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ public class CuccoonEntityRenderer extends LivingEntityRenderer<CuccoonEntity, C
|
|||
@Override
|
||||
public void render(CuccoonEntity entity, float yaw, float tickDelta, MatrixStack matrices, VertexConsumerProvider vertices, int light) {
|
||||
if (entity.hasPassengers()) {
|
||||
Entity rider = entity.getPrimaryPassenger();
|
||||
Entity rider = entity.getPassengerList().get(0);
|
||||
|
||||
if (!(rider == MinecraftClient.getInstance().player) || InteractionManager.instance().getViewMode() != 0) {
|
||||
RenderSystem.enableAlphaTest();
|
||||
|
|
Loading…
Reference in a new issue