Skip to content

Commit

Permalink
Perfection
Browse files Browse the repository at this point in the history
  • Loading branch information
enjarai committed Sep 30, 2023
1 parent 8b940de commit c35c699
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 57 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ yacl_version=3.1.0+1.20
# https://github.com/isXander/Controlify/releases
controlify_version=1.3.0-beta.2+1.20
mixin_extras_version=0.2.0-beta.8
mixin_squared_version=0.1.0
mixin_squared_version=0.1.1
permissions_api_version=0.2-SNAPSHOT
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
package nl.enjarai.doabarrelroll.fabric;

import com.bawnorton.mixinsquared.api.MixinCanceller;
import com.bawnorton.mixinsquared.tools.MixinAnnotationReader;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
import net.fabricmc.fabric.api.client.keybinding.v1.KeyBindingHelper;
import nl.enjarai.cicada.api.conversation.ConversationManager;
import nl.enjarai.cicada.api.util.CicadaEntrypoint;
import nl.enjarai.cicada.api.util.JsonSource;
import nl.enjarai.cicada.api.util.ProperLogger;
import nl.enjarai.doabarrelroll.DoABarrelRoll;
import nl.enjarai.doabarrelroll.DoABarrelRollClient;
import nl.enjarai.doabarrelroll.ModKeybindings;
import nl.enjarai.doabarrelroll.config.ModConfig;
import nl.enjarai.doabarrelroll.fabric.net.HandshakeClientFabric;
import nl.enjarai.doabarrelroll.util.MixinCancelChecker;
import nl.enjarai.doabarrelroll.util.StarFoxUtil;
import org.slf4j.Logger;

import java.util.List;

Expand All @@ -42,9 +37,9 @@ public void onInitializeClient() {

@Override
public boolean shouldCancel(List<String> targetClassNames, String mixinClassName) {
if (mixinClassName.equals("com.anthonyhilyard.equipmentcompare.mixin.KeyMappingMixin") && !MixinCancelChecker.hasChangedPriority(mixinClassName, 0)) {
if (mixinClassName.equals("com.anthonyhilyard.equipmentcompare.mixin.KeyMappingMixin") && MixinAnnotationReader.getPriority(mixinClassName) == 1000) {
DoABarrelRoll.LOGGER.warn("Equipment Compare detected, disabling their overly invasive keybinding mixin. Report any relevant issues to them.");
DoABarrelRoll.LOGGER.warn("If the author of Equipment Compare is reading this: see #31 on your github. Once you've fixed the issue, you can set the priority of this mixin explicitly to stop it being disabled.");
DoABarrelRoll.LOGGER.warn("If the author of Equipment Compare is reading this: see #31 on your github. Once the issue is fixed, you can set the priority of this mixin to anything other than 1000 to stop it being disabled.");
return true;
}
return false;
Expand Down

This file was deleted.

0 comments on commit c35c699

Please sign in to comment.