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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user