Move flammable reg out of init

This commit is contained in:
Andrew-71 2023-08-29 17:37:57 +03:00
parent fc5097e354
commit 259eaaa1c0

View file

@ -436,7 +436,7 @@ public class NSE_Blocks extends NSE_BaseRegistration {
registerBlock("metal_plating", () -> METAL_PLATING, NSE_BUILDING_TAB); registerBlock("metal_plating", () -> METAL_PLATING, NSE_BUILDING_TAB);
registerBlock("crate", () -> CRATE, NSE_BUILDING_TAB); registerBlock("crate", () -> CRATE, NSE_BUILDING_TAB);
registerBlock("concrete_wall", () -> CONCRETE_WALL, NSE_BUILDING_TAB); // TODO: Broken registerBlock("concrete_wall", () -> CONCRETE_WALL, NSE_BUILDING_TAB); // FIXME: 29.08.2023 This wall's top texture is a bit broken
registerBlock("green_wallpaper", () -> GREEN_WALLPAPER, NSE_BUILDING_TAB); registerBlock("green_wallpaper", () -> GREEN_WALLPAPER, NSE_BUILDING_TAB);
registerBlock("brown_wallpaper", () -> BROWN_WALLPAPER, NSE_BUILDING_TAB); registerBlock("brown_wallpaper", () -> BROWN_WALLPAPER, NSE_BUILDING_TAB);
@ -448,7 +448,10 @@ public class NSE_Blocks extends NSE_BaseRegistration {
registerBlock("purple_goo", () -> PURPLE_GOO, NSE_BUILDING_TAB); registerBlock("purple_goo", () -> PURPLE_GOO, NSE_BUILDING_TAB);
registerBlock("handrail", () -> HANDRAIL, NSE_BUILDING_TAB); registerBlock("handrail", () -> HANDRAIL, NSE_BUILDING_TAB);
// Flammable blocks! flammableInit();
}
public static void flammableInit() {
FlammableBlockRegistry flammableBlockRegistry = FlammableBlockRegistry.getDefaultInstance(); FlammableBlockRegistry flammableBlockRegistry = FlammableBlockRegistry.getDefaultInstance();
flammableBlockRegistry.add(HERRINGBONE_ACACIA_PLANKS, 20, 5); flammableBlockRegistry.add(HERRINGBONE_ACACIA_PLANKS, 20, 5);
flammableBlockRegistry.add(CROSS_ACACIA_PLANKS, 20, 5); flammableBlockRegistry.add(CROSS_ACACIA_PLANKS, 20, 5);