Skip to content

Commit

Permalink
Why do they call it oven when you of in the cold food of out hot eat …
Browse files Browse the repository at this point in the history
…the food (#1316)
  • Loading branch information
screret authored May 24, 2024
1 parent 30736ce commit 36a8ea4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ public int getMaxParallelRatio(IRecipeCapabilityHolder holder, GTRecipe recipe,
if (recipeEUt == 0) {
return Integer.MAX_VALUE;
}
return Math.abs((int) (maxVoltage / recipeEUt));
return Math.abs(safeCastLongToInt(maxVoltage / recipeEUt));
}

public static int safeCastLongToInt(long v) {
return v > Integer.MAX_VALUE ? Integer.MAX_VALUE : (int) v;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ protected void apply(Map<ResourceLocation, JsonElement> resourceList, ResourceMa
GTRegistries.BEDROCK_ORE_DEFINITIONS.registry().clear();
GTOres.toReRegisterBedrock.forEach(GTRegistries.BEDROCK_ORE_DEFINITIONS::registerOrOverride);

AddonFinder.getAddons().forEach(IGTAddon::registerFluidVeins);
AddonFinder.getAddons().forEach(IGTAddon::registerBedrockOreVeins);
ModLoader.get().postEvent(new GTCEuAPI.RegisterEvent<>(GTRegistries.BEDROCK_ORE_DEFINITIONS, BedrockOreDefinition.class));
if (GTCEu.isKubeJSLoaded()) {
RunKJSEventInSeparateClassBecauseForgeIsDumb.fireKJSEvent();
Expand Down

0 comments on commit 36a8ea4

Please sign in to comment.