Skip to content

Commit

Permalink
fix block color handler
Browse files Browse the repository at this point in the history
  • Loading branch information
friendlyhj committed Jul 3, 2021
1 parent 415f4f3 commit a507be6
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -19,7 +19,7 @@ public static void onItemColor(ColorHandlerEvent.Item event) {

@SubscribeEvent
public static void onBlockColor(ColorHandlerEvent.Block event) {
VanillaFactory.REGISTRY.getItems().stream()
VanillaFactory.REGISTRY.getBlocks().stream()
.filter(CoTBlockAdvanced.class::isInstance)
.map(CoTBlockAdvanced.class::cast)
.forEach(block -> event.getBlockColors().register(block::getColor, block));
Expand Down

0 comments on commit a507be6

Please sign in to comment.