Skip to content

Commit c05ae27

Browse files
committed
Merge remote-tracking branch 'origin/1.21.1' into 1.21.7
Drop `fix_loop_spin_waiting` option Related: #595
2 parents c298c1f + 07592fb commit c05ae27

File tree

7 files changed

+14
-69
lines changed

7 files changed

+14
-69
lines changed

buildSrc/src/main/groovy/modernfix.common-conventions.gradle

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,4 @@ repositories {
125125
includeGroup "com.terraformersmc"
126126
}
127127
}
128-
exclusiveContent {
129-
forRepository {
130-
maven {
131-
url "https://maven.tterrag.com"
132-
}
133-
}
134-
filter {
135-
includeGroup "team.chisel.ctm"
136-
}
137-
}
138128
}

common/src/main/java/org/embeddedt/modernfix/common/mixin/perf/fix_loop_spin_waiting/MinecraftServerMixin.java

Lines changed: 0 additions & 48 deletions
This file was deleted.

common/src/main/java/org/embeddedt/modernfix/core/config/ModernFixEarlyConfig.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ public DefaultSettingMapBuilder put(String key, Boolean value) {
175175
.put("mixin.perf.dynamic_entity_renderers", false)
176176
.put("mixin.feature.integrated_server_watchdog", true)
177177
.put("mixin.perf.faster_item_rendering", false)
178+
.put("mixin.perf.ingredient_item_deduplication", false)
178179
.put("mixin.feature.spam_thread_dump", false)
179180
.put("mixin.feature.disable_unihex_font", false)
180181
.put("mixin.feature.remove_chat_signing", false)
@@ -239,6 +240,7 @@ private ModernFixEarlyConfig(File file) {
239240
disableIfModPresent("mixin.feature.remove_chat_signing", "nochatreports");
240241
disableIfModPresent("mixin.perf.faster_texture_loading", "stitch", "optifine", "changed");
241242
disableIfModPresent("mixin.perf.faster_ingredients", "vmp");
243+
disableIfModPresent("mixin.perf.smart_ingredient_sync", "crafttweaker");
242244
if(isFabric) {
243245
disableIfModPresent("mixin.bugfix.packet_leak", "memoryleakfix");
244246
}

gradle.properties

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ parchment_mc_version=1.21.8
1313
refined_storage_version=4392788
1414
jei_version=19.0.0.9
1515
rei_version=13.0.678
16-
ctm_version=5541286
17-
# ctm_version=1.21-1.2.0+2
16+
ctm_version=5587515
1817
ldlib_version=5782845
1918
kubejs_version=2101.7.1-build.181
2019
rhino_version=2101.2.7-build.74

neoforge/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ dependencies {
5656
transitive = false
5757
}
5858
//modRuntimeOnly("curse.maven:ferritecore-429235:4441949")
59-
modCompileOnly("curse.maven:CTM-267602:${ctm_version}")
59+
modCompileOnly("curse.maven:ctm-267602:${ctm_version}")
6060
modCompileOnly("curse.maven:ldlib-626676:${ldlib_version}")
6161

6262
modCompileOnly("curse.maven:supermartijncore-454372:4455391")

neoforge/src/main/java/org/embeddedt/modernfix/neoforge/init/ModernFixForge.java

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,15 @@ public void commonSetup(FMLCommonSetupEvent event) {
7979
}
8080

8181
private void registerNetworkChannel(final RegisterPayloadHandlersEvent event) {
82-
// Sets the current network version
83-
final PayloadRegistrar registrar = event.registrar("1").optional();
84-
registrar.playToClient(
85-
SmartIngredientSyncPayload.TYPE,
86-
SmartIngredientSyncPayload.STREAM_CODEC,
87-
(payload, ctx) -> {}
88-
);
82+
if (ModernFixMixinPlugin.instance.isOptionEnabled("perf.smart_ingredient_sync.Channel")) {
83+
// Sets the current network version
84+
final PayloadRegistrar registrar = event.registrar("1").optional();
85+
registrar.playToClient(
86+
SmartIngredientSyncPayload.TYPE,
87+
SmartIngredientSyncPayload.STREAM_CODEC,
88+
(payload, ctx) -> {}
89+
);
90+
}
8991
}
9092

9193
@SubscribeEvent(priority = EventPriority.LOWEST)

neoforge/src/main/resources/META-INF/neoforge.mods.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,5 @@ modId = "jei"
6565
type = "optional"
6666
# This version range declares a minimum of the current minecraft version up to but not including the next major version
6767
versionRange = "[15.8.0.11,)"
68-
ordering = "BEFORE"
68+
ordering = "NONE"
6969
side = "CLIENT"

0 commit comments

Comments
 (0)