Fix lag spike when inserting compost into the Barrel for the first time

This commit is contained in:
thedarkcolour 2024-06-12 12:25:54 -07:00
parent 6d7245b8ee
commit f6141cc9d9
No known key found for this signature in database
GPG Key ID: 6599A8E0516C8F38
2 changed files with 3 additions and 1 deletions

View File

@ -64,7 +64,7 @@ public class CompostColors {
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 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 void loadColors() {

View File

@ -167,6 +167,8 @@ public final class EventHandler {
}
private static void onCommonSetup(FMLCommonSetupEvent event) {
CompostColors.loadColors();
event.enqueueWork(() -> {
FluidInteractionRegistry.addInteraction(NeoForgeMod.LAVA_TYPE.value(), new FluidInteractionRegistry.InteractionInformation(
EFluids.WITCH_WATER_TYPE.get(),