Skip to content

Commit a9271de

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

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
@@ -199,8 +199,8 @@ protected int getLayerOrder(final RenderLayer layer) {
199199
if (layer instanceof RenderLayer.MultiPhase multiPhase) {
200200
final Identifier textureId = multiPhase.getPhases().texture.getId().orElse(null);
201201
if (textureId != null) {
202-
if (textureId.toString().startsWith("minecraft:" + HorseArmorItem.ENTITY_TEXTURE_PREFIX)) {
203-
final String horseTexturePath = textureId.toString().substring(("minecraft:" + HorseArmorItem.ENTITY_TEXTURE_PREFIX).length());
202+
if (textureId.getPath().startsWith(HorseArmorItem.ENTITY_TEXTURE_PREFIX)) {
203+
final String horseTexturePath = textureId.getPath().substring(HorseArmorItem.ENTITY_TEXTURE_PREFIX.length());
204204
if (horseTexturePath.startsWith("horse_markings")) {
205205
return 2;
206206
} else if (horseTexturePath.startsWith("armor/")) {

0 commit comments

Comments
 (0)