Skip to content

Commit 31860df

Browse files
committed
Fix attribute and living entity
1 parent 4da10d0 commit 31860df

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/resources/neoforge-1.20.4/mappings/attributes.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ MAX_ABSORPTION: Attributes.MAX_ABSORPTION
1717
MAX_HEALTH: Attributes.MAX_HEALTH
1818
MOVEMENT_SPEED: Attributes.MOVEMENT_SPEED
1919
SPAWN_REINFORCEMENTS_CHANCE: Attributes.SPAWN_REINFORCEMENTS_CHANCE
20-
STEP_HEIGHT: NeoForgeMod.STEP_HEIGHT
21-
SWIM_SPEED: NeoForgeMod.SWIM_SPEED
22-
NAMETAG_RENDER_DISTANCE: NeoForgeMod.NAMETAG_DISTANCE
20+
STEP_HEIGHT: NeoForgeMod.STEP_HEIGHT.value()
21+
SWIM_SPEED: NeoForgeMod.SWIM_SPEED.value()
22+
NAMETAG_RENDER_DISTANCE: NeoForgeMod.NAMETAG_DISTANCE.value()

src/main/resources/neoforge-1.20.4/templates/livingentity/livingentity_renderer.java.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public class ${name}Renderer extends <#if humanoid>Humanoid</#if>MobRenderer<${n
151151
poseStack.scale(0.9375f, 0.9375f, 0.9375f);
152152
</#if>
153153
<#if data.breedable>
154-
poseStack.scale(entity.getAgeScale(), entity.getAgeScale(), entity.getAgeScale());
154+
poseStack.scale(entity.getScale(), entity.getScale(), entity.getScale());
155155

156156
</#if>
157157
}

0 commit comments

Comments
 (0)