blob: 49a0eb9b6775dec87588c7cafe210ef7c4aacbcd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
package shcm.shsupercm.fabric.citresewn.mixin;
import net.minecraft.util.Identifier;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
@Mixin(Identifier.class)
public class IdentifierMixin {
/*//todo remove
@Inject(method = "isPathValid(Ljava/lang/String;)Z", cancellable = true, at = @At("HEAD"))
private static void isPathValid(String path, CallbackInfoReturnable<Boolean> ci) {
if(path.startsWith("textures/block") || path.startsWith("block") || path.startsWith("optifine"))
ci.setReturnValue(true); return;
}*/
}
|