Fix lag spike when inserting compost into the Barrel for the first time
This commit is contained in:
parent
6d7245b8ee
commit
f6141cc9d9
|
|
@ -64,7 +64,7 @@ public class CompostColors {
|
||||||
public static final String VANILLA_COMPOST_COLORS_FILE = "vanilla_compost_colors.txt";
|
public static final String VANILLA_COMPOST_COLORS_FILE = "vanilla_compost_colors.txt";
|
||||||
public static final Path COMPOST_COLORS_CONFIGS = Paths.get("config/exdeorum/compost_colors");
|
public static final Path COMPOST_COLORS_CONFIGS = Paths.get("config/exdeorum/compost_colors");
|
||||||
|
|
||||||
public static final Object2ObjectMap<Item, Vector3i> COLORS = new Object2ObjectOpenHashMap<>();
|
public static final Object2ObjectOpenHashMap<Item, Vector3i> COLORS = new Object2ObjectOpenHashMap<>();
|
||||||
public static final Vector3i DEFAULT_COLOR = new Vector3i(53, 168, 42);
|
public static final Vector3i DEFAULT_COLOR = new Vector3i(53, 168, 42);
|
||||||
|
|
||||||
public static void loadColors() {
|
public static void loadColors() {
|
||||||
|
|
|
||||||
|
|
@ -167,6 +167,8 @@ public final class EventHandler {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void onCommonSetup(FMLCommonSetupEvent event) {
|
private static void onCommonSetup(FMLCommonSetupEvent event) {
|
||||||
|
CompostColors.loadColors();
|
||||||
|
|
||||||
event.enqueueWork(() -> {
|
event.enqueueWork(() -> {
|
||||||
FluidInteractionRegistry.addInteraction(NeoForgeMod.LAVA_TYPE.value(), new FluidInteractionRegistry.InteractionInformation(
|
FluidInteractionRegistry.addInteraction(NeoForgeMod.LAVA_TYPE.value(), new FluidInteractionRegistry.InteractionInformation(
|
||||||
EFluids.WITCH_WATER_TYPE.get(),
|
EFluids.WITCH_WATER_TYPE.get(),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user