Add the player-use peripheral for CC:Tweaked #9

Merged
BlakeRain merged 3 commits from BlakeRain/utamacraft:cc-playerish-peripheral into main 2023-11-27 16:16:56 +00:00
Showing only changes of commit b53cb79830 - Show all commits

View File

@ -19,7 +19,7 @@ public class ModBlocks {
DeferredRegister.create(ForgeRegistries.BLOCKS, Utamacraft.MOD_ID);
public static final RegistryObject<Block> ETHEREAL_GLASS =
registerBlock("ethereal_glass", () -> new EtherealGlass());
registerBlock("ethereal_glass", EtherealGlass::new);
private static <T extends Block> RegistryObject<T> registerBlock(String name, Supplier<T> block) {
RegistryObject<T> registered_block = BLOCKS.register(name, block);