Skip to content

Commit

Permalink
Fixes plant inventory tinting
Browse files Browse the repository at this point in the history
Should stop plant items from getting recolored in the inventory. Removed "
        itemColors.registerItemColorHandler((stack, tintIndex) ->
                event.getBlockColors().colorMultiplier(((ItemBlock) stack.getItem()).getBlock().getStateFromMeta(stack.getMetadata()), null, null, tintIndex),
            BlocksTFC.getAllPlantBlocks().toArray(new BlockPlantTFC[0]));
" at the recommendation of Konlii.
  • Loading branch information
Therighthon committed Jul 3, 2019
1 parent 9d84d35 commit c1c9c0c
Showing 1 changed file with 0 additions and 4 deletions.
Expand Up @@ -299,10 +299,6 @@ public static void registerColorHandlerItems(ColorHandlerEvent.Item event)
itemColors.registerItemColorHandler((stack, tintIndex) -> tintIndex == 1 ? EnumDyeColor.byDyeDamage(stack.getItemDamage()).getColorValue() : 0xFFFFFF,
ItemsTFC.CERAMICS_UNFIRED_VESSEL_GLAZED, ItemsTFC.CERAMICS_FIRED_VESSEL_GLAZED);

itemColors.registerItemColorHandler((stack, tintIndex) ->
event.getBlockColors().colorMultiplier(((ItemBlock) stack.getItem()).getBlock().getStateFromMeta(stack.getMetadata()), null, null, tintIndex),
BlocksTFC.getAllPlantBlocks().toArray(new BlockPlantTFC[0]));

itemColors.registerItemColorHandler((stack, tintIndex) ->
event.getBlockColors().colorMultiplier(((ItemBlock) stack.getItem()).getBlock().getStateFromMeta(stack.getMetadata()), null, null, tintIndex),
BlocksTFC.getAllGrassBlocks().toArray(new BlockPlantTFC[0]));
Expand Down

0 comments on commit c1c9c0c

Please sign in to comment.