aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorSHsuperCM <shsupercm@gmail.com>2021-09-11 12:54:52 +0300
committerSHsuperCM <shsupercm@gmail.com>2021-09-11 12:54:52 +0300
commite3fde8f10eb6d6d73ba2c8072f845ca03ee1c0e6 (patch)
tree46f3bce255a80ffaa582f2c74c2524d27a1d8180 /src/main/java
parent4b9608dc2d7470c4993c1a1ed7f96da86bf86b31 (diff)
downloadCITResewn-e3fde8f10eb6d6d73ba2c8072f845ca03ee1c0e6.tar.gz
CITResewn-e3fde8f10eb6d6d73ba2c8072f845ca03ee1c0e6.tar.bz2
CITResewn-e3fde8f10eb6d6d73ba2c8072f845ca03ee1c0e6.zip
Consistency
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/shcm/shsupercm/fabric/citresewn/mixin/broken_paths/AbstractFileResourcePackMixin.java2
-rw-r--r--src/main/java/shcm/shsupercm/fabric/citresewn/mixin/broken_paths/IdentifierMixin.java2
-rw-r--r--src/main/java/shcm/shsupercm/fabric/citresewn/mixin/broken_paths/ReloadableResourceManagerImplMixin.java2
-rw-r--r--src/main/java/shcm/shsupercm/fabric/citresewn/mixin/broken_paths/ResourcePackCompatibilityMixin.java2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/broken_paths/AbstractFileResourcePackMixin.java b/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/broken_paths/AbstractFileResourcePackMixin.java
index b6d2474..281150b 100644
--- a/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/broken_paths/AbstractFileResourcePackMixin.java
+++ b/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/broken_paths/AbstractFileResourcePackMixin.java
@@ -20,7 +20,7 @@ import java.nio.file.Files;
import java.nio.file.Path;
import java.util.zip.ZipFile;
-@Mixin(AbstractFileResourcePack.class) // Only registered if CITResewnConfig#broken_paths is true
+/* if (CITResewnConfig.read().broken_paths) */ @Mixin(AbstractFileResourcePack.class)
public abstract class AbstractFileResourcePackMixin implements ResourcePack {
@Shadow @Final protected File base;
diff --git a/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/broken_paths/IdentifierMixin.java b/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/broken_paths/IdentifierMixin.java
index 0ae5291..da9888f 100644
--- a/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/broken_paths/IdentifierMixin.java
+++ b/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/broken_paths/IdentifierMixin.java
@@ -7,7 +7,7 @@ import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
import shcm.shsupercm.fabric.citresewn.CITResewn;
-@Mixin(Identifier.class) // Only registered if CITResewnConfig#broken_paths is true
+/* if (CITResewnConfig.read().broken_paths) */ @Mixin(Identifier.class)
public class IdentifierMixin {
@Inject(method = "isPathValid", cancellable = true, at = @At("HEAD"))
private static void processBrokenPaths(String path, CallbackInfoReturnable<Boolean> cir) {
diff --git a/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/broken_paths/ReloadableResourceManagerImplMixin.java b/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/broken_paths/ReloadableResourceManagerImplMixin.java
index 8833b4c..f1a2b01 100644
--- a/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/broken_paths/ReloadableResourceManagerImplMixin.java
+++ b/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/broken_paths/ReloadableResourceManagerImplMixin.java
@@ -17,7 +17,7 @@ import java.util.List;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.Executor;
-@Mixin(ReloadableResourceManagerImpl.class) // Only registered if CITResewnConfig#broken_paths is true
+/* if (CITResewnConfig.read().broken_paths) */ @Mixin(ReloadableResourceManagerImpl.class)
public class ReloadableResourceManagerImplMixin {
@Shadow @Final private ResourceType type;
diff --git a/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/broken_paths/ResourcePackCompatibilityMixin.java b/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/broken_paths/ResourcePackCompatibilityMixin.java
index 4fe07ce..f62221b 100644
--- a/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/broken_paths/ResourcePackCompatibilityMixin.java
+++ b/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/broken_paths/ResourcePackCompatibilityMixin.java
@@ -8,7 +8,7 @@ import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
-@Mixin(ResourcePackCompatibility.class) // Only registered if CITResewnConfig#broken_paths is true
+/* if (CITResewnConfig.read().broken_paths) */ @Mixin(ResourcePackCompatibility.class)
public abstract class ResourcePackCompatibilityMixin {
private static final ResourcePackCompatibility BROKEN_PATHS = ResourcePackCompatibility("BROKEN_PATHS", -1, "broken_paths");