Skip to content

Commit

Permalink
1.21.4 moment
Browse files Browse the repository at this point in the history
  • Loading branch information
CaelTheColher committed Dec 3, 2024
1 parent 595bdbe commit 253c768
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
7 changes: 4 additions & 3 deletions common/src/main/kotlin/me/cael/capes/menu/SelectorMenu.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import net.minecraft.client.gui.widget.ButtonWidget
import net.minecraft.client.option.GameOptions
import net.minecraft.client.render.DiffuseLighting
import net.minecraft.client.render.entity.EntityRendererFactory
import net.minecraft.client.render.entity.equipment.EquipmentModelLoader
import net.minecraft.client.util.math.MatrixStack
import net.minecraft.screen.ScreenTexts
import net.minecraft.text.Text
Expand Down Expand Up @@ -90,12 +91,12 @@ class SelectorMenu(parent: Screen, gameOptions: GameOptions) : MainMenu(parent,
val immediate = MinecraftClient.getInstance().bufferBuilders.entityVertexConsumers
val ctx = EntityRendererFactory.Context(
MinecraftClient.getInstance().entityRenderDispatcher,
MinecraftClient.getInstance().itemRenderer,
MinecraftClient.getInstance().itemModelManager,
MinecraftClient.getInstance().mapRenderer,
MinecraftClient.getInstance().blockRenderManager,
MinecraftClient.getInstance().resourceManager,
MinecraftClient.getInstance().entityModelLoader,
MinecraftClient.getInstance().equipmentModelLoader,
MinecraftClient.getInstance().loadedEntityModels,
EquipmentModelLoader(),
MinecraftClient.getInstance().textRenderer
)
val displayPlayerEntityRenderer = DisplayPlayerEntityRenderer(ctx, entity.slim)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ class DisplayPlayerEntityRenderer(val ctx: EntityRendererFactory.Context, slim:
),
0.5f
) {

val elytra = ElytraEntityModel(ctx.modelLoader.getModelPart(EntityModelLayers.ELYTRA))
val elytra = ElytraEntityModel(ctx.entityModels.getModelPart(EntityModelLayers.ELYTRA))

fun render(livingEntity : PlaceholderEntity, tickDelta: Float, matrixStack: MatrixStack, vertexConsumerProvider: VertexConsumerProvider, light: Int) {
setModelPose()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ object PlaceholderEntity {

init {
MinecraftClient.getInstance().skinProvider.fetchSkinTextures(gameProfile).thenAccept {
skin = it
skin = it.get()
slim = skin.model == SkinTextures.Model.SLIM
}
}
Expand Down
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
org.gradle.jvmargs=-Xmx8G

minecraft_version=1.21.2
yarn_mappings=1.21.2+build.1
minecraft_version=1.21.4
yarn_mappings=1.21.4+build.1
neoforge_yarn_mappings=1.21+build.4
enabled_platforms=fabric

archives_base_name=capes
mod_version=1.5.4+1.21.2
mod_version=1.5.4+1.21.4
maven_group=me.capes

fabric_loader_version=0.16.7
fabric_api_version=0.106.1+1.21.2
fabric_loader_version=0.16.9
fabric_api_version=0.110.5+1.21.4

forge_version=21.2.0-beta

Expand Down

0 comments on commit 253c768

Please sign in to comment.