Skip to content

Commit

Permalink
Try to fix datagen hang (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxNeedsSnacks committed May 20, 2024
1 parent 66df980 commit f0f9ba4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import net.minecraft.world.item.ItemStack;
import net.neoforged.fml.ModList;
import net.neoforged.fml.ModLoader;
import net.neoforged.fml.loading.FMLLoader;
import net.neoforged.fml.loading.moddiscovery.ModInfo;
import net.neoforged.neoforge.network.IContainerFactory;

Expand Down Expand Up @@ -36,7 +37,7 @@ public void setModName(PlatformWrapper.ModInfo info, String name) {
}

public boolean isDataGen() {
return ModLoader.isDataGenRunning();
return FMLLoader.getLaunchHandler().isData();
}

public long ingotFluidAmount() {
Expand Down

0 comments on commit f0f9ba4

Please sign in to comment.