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.perf.faster_texture_loading", "stitch", "optifine", "changed");
|
||||
disableIfModPresent("mixin.perf.faster_ingredients", "vmp");
|
||||
disableIfModPresent("mixin.perf.smart_ingredient_sync", "crafttweaker");
|
||||
if(isFabric) {
|
||||
disableIfModPresent("mixin.bugfix.packet_leak", "memoryleakfix");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -79,13 +79,15 @@ public class ModernFixForge {
|
|||
}
|
||||
|
||||
private void registerNetworkChannel(final RegisterPayloadHandlersEvent event) {
|
||||
// Sets the current network version
|
||||
final PayloadRegistrar registrar = event.registrar("1").optional();
|
||||
registrar.playToClient(
|
||||
SmartIngredientSyncPayload.TYPE,
|
||||
SmartIngredientSyncPayload.STREAM_CODEC,
|
||||
(payload, ctx) -> {}
|
||||
);
|
||||
if (ModernFixMixinPlugin.instance.isOptionEnabled("perf.smart_ingredient_sync.Channel")) {
|
||||
// Sets the current network version
|
||||
final PayloadRegistrar registrar = event.registrar("1").optional();
|
||||
registrar.playToClient(
|
||||
SmartIngredientSyncPayload.TYPE,
|
||||
SmartIngredientSyncPayload.STREAM_CODEC,
|
||||
(payload, ctx) -> {}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@SubscribeEvent(priority = EventPriority.LOWEST)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user