Skip to content

Commit d605231

Browse files
committed
Made horse armor layering fix compatible with modded horse armor
Fixes #327
1 parent f1047de commit d605231

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/src/main/java/net/raphimc/immediatelyfast/feature/core/BatchableBufferSource.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ protected int getLayerOrder(final RenderLayer layer) {
201201
if (layer instanceof RenderLayer.MultiPhase multiPhase) {
202202
final Identifier textureId = multiPhase.getPhases().texture.getId().orElse(null);
203203
if (textureId != null) {
204-
if (textureId.toString().startsWith("minecraft:textures/entity/horse/")) {
205-
final String horseTexturePath = textureId.toString().substring(("minecraft:textures/entity/horse/").length());
204+
if (textureId.getPath().startsWith("textures/entity/horse/")) {
205+
final String horseTexturePath = textureId.getPath().substring("textures/entity/horse/".length());
206206
if (horseTexturePath.startsWith("horse_markings")) {
207207
return 2;
208208
} else if (horseTexturePath.startsWith("armor/")) {

0 commit comments

Comments
 (0)