Skip to content
This repository was archived by the owner on Sep 15, 2024. It is now read-only.

Commit 85ac50a

Browse files
remove cape mixin, 2.1.0
1 parent c22d4ff commit 85ac50a

File tree

4 files changed

+30
-31
lines changed

4 files changed

+30
-31
lines changed

Diff for: gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ mod_name=Mixmetica
33
# Sets the id of your mod that mod loaders use to recognize it.
44
mod_id=mixmetica
55
# Sets the version of your mod. Make sure to update this when you make changes according to semver.
6-
mod_version=2.0.4
6+
mod_version=2.1.0
77
# Sets the name of the jar file that you put in your 'mods' folder.
88
mod_archives_name=Mixmetica
99

Diff for: src/main/java/dev/microcontrollers/mixmetica/config/MixmeticaConfig.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@
1313

1414
public class MixmeticaConfig extends Config {
1515
@Info(
16-
text = "Mixmetica does not support animated capes. Only the first frame of the cape will show.",
16+
text = "Mixmetica does not currently support capes.",
1717
type = InfoType.ERROR,
18-
size=2
18+
size = 2
1919
)
2020
private boolean animatedCapesError = false;
2121

2222
@Info(
2323
text = "Cosmetica will ask you to sign into your Microsoft account to authenticate. Disabling cosmetics will require a game restart.",
24-
size = 2,
2524
type = InfoType.INFO,
26-
subcategory = "General"
25+
subcategory = "General",
26+
size = 2
2727
)
2828
private boolean loginAndDisableWarning = false;
2929

@@ -53,8 +53,8 @@ public class MixmeticaConfig extends Config {
5353
@Info(
5454
text = "Only use a custom instance if you know what you are doing.",
5555
type = InfoType.WARNING,
56-
size = 2,
57-
subcategory = "Instance"
56+
subcategory = "Instance",
57+
size = 2
5858
)
5959
private boolean arcmeticaInstanceWarning = false;
6060

Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
package dev.microcontrollers.mixmetica.mixin;
22

3-
import dev.microcontrollers.mixmetica.config.MixmeticaConfig;
4-
import org.spongepowered.asm.mixin.Dynamic;
5-
import org.spongepowered.asm.mixin.Mixin;
6-
import org.spongepowered.asm.mixin.Pseudo;
7-
import org.spongepowered.asm.mixin.injection.Constant;
8-
import org.spongepowered.asm.mixin.injection.ModifyConstant;
9-
10-
@Pseudo
11-
@Mixin(targets = "net.optifine.player.CapeUtils", remap = false)
12-
public abstract class CapeUtilsMixin {
13-
@Dynamic
14-
@ModifyConstant(method = "downloadCape", constant = @Constant(stringValue = "http://s.optifine.net/capes/", ordinal = 0))
15-
private static String modifyCapeUrl(String originalUrl) {
16-
if (MixmeticaConfig.disable) return "http://s.optifine.net/capes/";
17-
String modifiedUrl = "http://23.95.137.176/capes/";
18-
if (MixmeticaConfig.customInstance) {
19-
String link = MixmeticaConfig.instanceLink;
20-
if (link.endsWith("/")) modifiedUrl = link.substring(0, link.length() - 1) + "/capes/";
21-
}
22-
modifiedUrl = modifiedUrl + originalUrl.substring(originalUrl.lastIndexOf('/') + 1);
23-
return modifiedUrl;
24-
}
25-
}
3+
//import dev.microcontrollers.mixmetica.config.MixmeticaConfig;
4+
//import org.spongepowered.asm.mixin.Dynamic;
5+
//import org.spongepowered.asm.mixin.Mixin;
6+
//import org.spongepowered.asm.mixin.Pseudo;
7+
//import org.spongepowered.asm.mixin.injection.Constant;
8+
//import org.spongepowered.asm.mixin.injection.ModifyConstant;
9+
//
10+
//@Pseudo
11+
//@Mixin(targets = "net.optifine.player.CapeUtils", remap = false)
12+
//public abstract class CapeUtilsMixin {
13+
// @Dynamic
14+
// @ModifyConstant(method = "downloadCape", constant = @Constant(stringValue = "http://s.optifine.net/capes/", ordinal = 0))
15+
// private static String modifyCapeUrl(String originalUrl) {
16+
// if (MixmeticaConfig.disable) return "http://s.optifine.net/capes/";
17+
// String modifiedUrl = "http://23.95.137.176/capes/";
18+
// if (MixmeticaConfig.customInstance) {
19+
// String link = MixmeticaConfig.instanceLink;
20+
// if (link.endsWith("/")) modifiedUrl = link.substring(0, link.length() - 1) + "/capes/";
21+
// }
22+
// modifiedUrl = modifiedUrl + originalUrl.substring(originalUrl.lastIndexOf('/') + 1);
23+
// return modifiedUrl;
24+
// }
25+
//}

Diff for: src/main/resources/mixins.mixmetica.json

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"minVersion": "0.7",
55
"compatibilityLevel": "JAVA_8",
66
"client": [
7-
"CapeUtilsMixin",
87
"HttpUtilsMixin"
98
]
109
}

0 commit comments

Comments
 (0)