Skip to content

Commit

Permalink
Fixed graphical issues with Draconic Evolution, Multiblocked2 and Sco…
Browse files Browse the repository at this point in the history
…rched Guns 2 by disabling HUD batching when they are loaded.

Closes #300
Closes #305
  • Loading branch information
RaphiMC committed Jan 25, 2025
1 parent d36adc5 commit 677915d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ It should work fine with most if not all mods and modpacks.
Known incompatibilities:

- OptiFabric / OptiFine
- VulkanMod
- Most closed source "clients" like LunarClient and LabyMod

If you encounter any issues, please report them on the [Issue Tracker](https://github.com/RaphiMC/ImmediatelyFast/issues).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,20 @@ public static void earlyInit() {
ImmediatelyFast.loadConfig();

if (!config.debug_only_and_not_recommended_disable_mod_conflict_handling) {
if (config.hud_batching && PlatformCode.getModVersion("slight-gui-modifications").isPresent()) {
LOGGER.warn("Slight GUI Modifications detected. Force disabling HUD Batching optimization.");
config.hud_batching = false;
if (config.hud_batching) {
if (PlatformCode.getModVersion("scguns").isPresent()) {
// https://github.com/ribs498/Scorched-Guns-1.20.1/issues/51
LOGGER.warn("Scorched Guns 2 mod detected. Force disabling HUD Batching optimization.");
config.hud_batching = false;
} else if (PlatformCode.getModVersion("mbd2").isPresent()) {
// https://github.com/Low-Drag-MC/Multiblocked2/issues/80
LOGGER.warn("Multiblocked2 mod detected. Force disabling HUD Batching optimization.");
config.hud_batching = false;
} else if (PlatformCode.getModVersion("draconicevolution").isPresent()) {
// https://github.com/Draconic-Inc/Draconic-Evolution/issues/1868
LOGGER.warn("Draconic Evolution mod detected. Force disabling HUD Batching optimization.");
config.hud_batching = false;
}
}
}

Expand Down
5 changes: 1 addition & 4 deletions fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,9 @@
"recommends": {
"sodium": "*"
},
"conflicts": {
"slight-gui-modifications": "*",
"vulkanmod": "*"
},
"breaks": {
"optifabric": "*",
"vulkanmod": "*",
"memoryleakfix": "<=1.1.1"
},
"custom": {
Expand Down

0 comments on commit 677915d

Please sign in to comment.