Fixed exception when rendering the cuccoon

This commit is contained in:
Sollace 2020-05-03 22:41:18 +02:00
parent 8e8b539fad
commit aaee3e48cd

View file

@ -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();