Fix VisualSettings#hidePrioritySelectionsInJigsawScreen condition

This commit is contained in:
FlorianMichael 2024-07-16 20:05:38 +02:00
parent 2faa857ecd
commit 099252cd1f
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126

View File

@ -19,8 +19,6 @@
package de.florianmichael.viafabricplus.injection.mixin.fixes.minecraft.screen;
import com.viaversion.viaversion.api.protocol.version.ProtocolVersion;
import de.florianmichael.viafabricplus.protocoltranslator.ProtocolTranslator;
import de.florianmichael.viafabricplus.settings.impl.VisualSettings;
import net.minecraft.block.entity.JigsawBlockEntity;
import net.minecraft.client.gui.DrawContext;
@ -60,7 +58,7 @@ public abstract class MixinJigsawBlockScreen extends Screen {
@Inject(method = "init", at = @At("RETURN"))
private void disableWidgets(CallbackInfo ci) {
if (!VisualSettings.global().hidePrioritySelectionsInJigsawScreen.isEnabled()) {
if (VisualSettings.global().hidePrioritySelectionsInJigsawScreen.isEnabled()) {
selectionPriorityField.active = false;
placementPriorityField.active = false;
}