Skip to content

Commit 2c22ea6

Browse files
committed
Fix deprecations on RegisterColorHandlersEvent usage
1 parent c664b57 commit 2c22ea6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

neoforge-main/src/main/java/dev/compactmods/crafting/projector/render/FieldProjectorRenderSetup.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ public static void init(final FMLClientSetupEvent event) {
2828

2929
@SubscribeEvent
3030
public static void onBlockColors(final RegisterColorHandlersEvent.Block colors) {
31-
colors.getBlockColors().register(new FieldProjectorColors.Block(), CCBlocks.FIELD_PROJECTOR_BLOCK.get());
31+
colors.register(new FieldProjectorColors.Block(), CCBlocks.FIELD_PROJECTOR_BLOCK.get());
3232
}
3333

3434
@SubscribeEvent
3535
public static void onItemColors(final RegisterColorHandlersEvent.Item itemColors) {
36-
itemColors.getItemColors().register(new FieldProjectorColors.Item(), CCItems.FIELD_PROJECTOR_ITEM.get());
36+
itemColors.register(new FieldProjectorColors.Item(), CCItems.FIELD_PROJECTOR_ITEM.get());
3737
}
3838

3939
@SubscribeEvent

0 commit comments

Comments
 (0)