mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-22 04:27:59 +01:00
Fix build and bump dependencies
This commit is contained in:
parent
42968a99ff
commit
97f71ffa24
5 changed files with 7 additions and 7 deletions
|
@ -19,5 +19,5 @@ org.gradle.daemon=false
|
|||
# Dependencies
|
||||
modmenu_version=1.12.+
|
||||
kirin_version=1.7-1.16.2
|
||||
hd_skins_version=6.3-1.16.2
|
||||
hd_skins_version=6.3.3-1.16.3
|
||||
mson_version=1.2.1-1.16-rc1-1.16
|
||||
|
|
|
@ -5,7 +5,7 @@ import net.minecraft.client.render.VertexConsumer;
|
|||
import net.minecraft.client.render.entity.model.ModelWithHat;
|
||||
import net.minecraft.client.util.math.MatrixStack;
|
||||
import net.minecraft.entity.LivingEntity;
|
||||
import net.minecraft.entity.passive.AbstractTraderEntity;
|
||||
import net.minecraft.entity.passive.MerchantEntity;
|
||||
import net.minecraft.util.math.MathHelper;
|
||||
import net.minecraft.village.VillagerDataContainer;
|
||||
import net.minecraft.village.VillagerProfession;
|
||||
|
@ -88,8 +88,8 @@ public class VillagerPonyModel<T extends LivingEntity & VillagerDataContainer> e
|
|||
public void setAngles(T entity, float move, float swing, float ticks, float headYaw, float headPitch) {
|
||||
super.setAngles(entity, move, swing, ticks, headYaw, headPitch);
|
||||
|
||||
boolean isHeadRolling = entity instanceof AbstractTraderEntity
|
||||
&& ((AbstractTraderEntity)entity).getHeadRollingTimeLeft() > 0;
|
||||
boolean isHeadRolling = entity instanceof MerchantEntity
|
||||
&& ((MerchantEntity)entity).getHeadRollingTimeLeft() > 0;
|
||||
|
||||
if (isHeadRolling) {
|
||||
float roll = 0.3F * MathHelper.sin(0.45F * ticks);
|
||||
|
|
|
@ -40,7 +40,7 @@ public class LevitatingItemRenderer {
|
|||
}
|
||||
|
||||
public static RenderLayer getRenderLayer() {
|
||||
return getRenderLayer(SpriteAtlasTexture.BLOCK_ATLAS_TEX);
|
||||
return getRenderLayer(SpriteAtlasTexture.BLOCK_ATLAS_TEXTURE);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -93,7 +93,7 @@ public class ArmourFeature<T extends LivingEntity, M extends EntityModel<T> & IP
|
|||
MatrixStack matrices, VertexConsumerProvider provider,
|
||||
int light, boolean glint, V model, float r, float g, float b, IArmourTextureResolver<T> resolver, ArmourLayer layer, Identifier texture) {
|
||||
|
||||
VertexConsumer vertices = ItemRenderer.getArmorVertexConsumer(provider, RenderLayer.getArmorCutoutNoCull(texture), false, glint);
|
||||
VertexConsumer vertices = ItemRenderer.getArmorGlintConsumer(provider, RenderLayer.getArmorCutoutNoCull(texture), false, glint);
|
||||
|
||||
model.setVariant(resolver.getArmourVariant(layer, texture));
|
||||
model.render(matrices, vertices, light, OverlayTexture.DEFAULT_UV, r, g, b, 1);
|
||||
|
|
|
@ -47,7 +47,7 @@ public class ElytraFeature<T extends LivingEntity, M extends EntityModel<T> & IP
|
|||
}
|
||||
|
||||
elytra.setAngles(entity, limbDistance, limbAngle, age, headYaw, headPitch);
|
||||
VertexConsumer vertexConsumer = ItemRenderer.getDirectGlintVertexConsumer(renderContext, modelElytra.getLayer(getElytraTexture(entity)), false, itemstack.hasGlint());
|
||||
VertexConsumer vertexConsumer = ItemRenderer.getDirectItemGlintConsumer(renderContext, modelElytra.getLayer(getElytraTexture(entity)), false, itemstack.hasGlint());
|
||||
modelElytra.render(stack, vertexConsumer, lightUv, OverlayTexture.DEFAULT_UV, 1, 1, 1, 1);
|
||||
|
||||
stack.pop();
|
||||
|
|
Loading…
Reference in a new issue