29 lines
955 B
Java
29 lines
955 B
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*
|
|
* Could not load the following classes:
|
|
* com.mojang.datafixers.DSL
|
|
* com.mojang.datafixers.DataFix
|
|
* com.mojang.datafixers.TypeRewriteRule
|
|
* com.mojang.datafixers.schemas.Schema
|
|
*/
|
|
package net.minecraft.util.datafix.fixes;
|
|
|
|
import com.mojang.datafixers.DSL;
|
|
import com.mojang.datafixers.DataFix;
|
|
import com.mojang.datafixers.TypeRewriteRule;
|
|
import com.mojang.datafixers.schemas.Schema;
|
|
import net.minecraft.util.datafix.fixes.References;
|
|
|
|
public class OptionsSetGraphicsPresetToCustomFix
|
|
extends DataFix {
|
|
public OptionsSetGraphicsPresetToCustomFix(Schema outputSchema) {
|
|
super(outputSchema, true);
|
|
}
|
|
|
|
public TypeRewriteRule makeRule() {
|
|
return this.fixTypeEverywhereTyped("graphicsPreset set to \"custom\"", this.getInputSchema().getType(References.OPTIONS), input -> input.update(DSL.remainderFinder(), tag -> tag.set("graphicsPreset", tag.createString("custom"))));
|
|
}
|
|
}
|
|
|