Skip to content

Commit 37f4cd4

Browse files
committed
Made horse armor layering fix compatible with modded horse armor
Fixes #327
1 parent 4787981 commit 37f4cd4

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

0 commit comments

Comments
 (0)