1
0
mirror of https://github.com/GeyserMC/Rainbow.git synced 2025-12-19 14:59:16 +00:00

Fix only mapping one custom model item per vanilla item (legacy custom model data)

This commit is contained in:
Eclipse
2025-07-28 13:02:52 +00:00
parent c6561a558f
commit 219bda16e4

View File

@@ -82,7 +82,7 @@ public class BedrockItemMapper {
float scaledCustomModelData = customModelData * accessor.getScale();
int modelIndex = RangeSelectItemModelAccessor.invokeLastIndexLessOrEqual(accessor.getThresholds(), scaledCustomModelData);
ItemModel model = modelIndex == -1 ? accessor.getFallback() : accessor.getModels()[index];
ItemModel model = modelIndex == -1 ? accessor.getFallback() : accessor.getModels()[modelIndex];
mapItem(model, stack, reporter, base -> new GeyserLegacyDefinition(base, customModelData), context);
} else {
reporter.report(() -> "range_dispatch custom model data property index is not zero, unable to apply custom model data");