Merge remote-tracking branch 'origin/1.20' into 1.21.1
This commit is contained in:
commit
5ea3880e80
|
|
@ -239,6 +239,7 @@ public class ModernFixEarlyConfig {
|
||||||
disableIfModPresent("mixin.feature.remove_chat_signing", "nochatreports");
|
disableIfModPresent("mixin.feature.remove_chat_signing", "nochatreports");
|
||||||
disableIfModPresent("mixin.perf.faster_texture_loading", "stitch", "optifine", "changed");
|
disableIfModPresent("mixin.perf.faster_texture_loading", "stitch", "optifine", "changed");
|
||||||
disableIfModPresent("mixin.perf.faster_ingredients", "vmp");
|
disableIfModPresent("mixin.perf.faster_ingredients", "vmp");
|
||||||
|
disableIfModPresent("mixin.perf.smart_ingredient_sync", "crafttweaker");
|
||||||
if(isFabric) {
|
if(isFabric) {
|
||||||
disableIfModPresent("mixin.bugfix.packet_leak", "memoryleakfix");
|
disableIfModPresent("mixin.bugfix.packet_leak", "memoryleakfix");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -79,13 +79,15 @@ public class ModernFixForge {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void registerNetworkChannel(final RegisterPayloadHandlersEvent event) {
|
private void registerNetworkChannel(final RegisterPayloadHandlersEvent event) {
|
||||||
// Sets the current network version
|
if (ModernFixMixinPlugin.instance.isOptionEnabled("perf.smart_ingredient_sync.Channel")) {
|
||||||
final PayloadRegistrar registrar = event.registrar("1").optional();
|
// Sets the current network version
|
||||||
registrar.playToClient(
|
final PayloadRegistrar registrar = event.registrar("1").optional();
|
||||||
SmartIngredientSyncPayload.TYPE,
|
registrar.playToClient(
|
||||||
SmartIngredientSyncPayload.STREAM_CODEC,
|
SmartIngredientSyncPayload.TYPE,
|
||||||
(payload, ctx) -> {}
|
SmartIngredientSyncPayload.STREAM_CODEC,
|
||||||
);
|
(payload, ctx) -> {}
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@SubscribeEvent(priority = EventPriority.LOWEST)
|
@SubscribeEvent(priority = EventPriority.LOWEST)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user