add annotation obf :3
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 1m55s
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 1m55s
This commit is contained in:
parent
6ce78541ef
commit
1b67cf9d2e
4 changed files with 13 additions and 3 deletions
|
@ -15,7 +15,7 @@
|
|||
<method v="2" />
|
||||
</configuration>
|
||||
<configuration default="false" name="mobf" type="ShConfigurationType">
|
||||
<option name="SCRIPT_TEXT" value="bash mobf.sh Client/build/libs/BaseBand-Broadway.jar Loader/build/proguard/BaseBand-Loader.jar" />
|
||||
<option name="SCRIPT_TEXT" value="bash mobf.sh Client/build/proguard/BaseBand-Broadway.jar Loader/build/proguard/BaseBand-Loader.jar" />
|
||||
<option name="INDEPENDENT_SCRIPT_PATH" value="true" />
|
||||
<option name="SCRIPT_PATH" value="$PROJECT_DIR$/mobf.sh" />
|
||||
<option name="SCRIPT_OPTIONS" value="*/build/proguard/BaseBand-*.jar" />
|
||||
|
|
|
@ -11,6 +11,7 @@ import com.baseband.client.registry.Configuration;
|
|||
import com.baseband.client.registry.Updater;
|
||||
import com.baseband.client.util.interact.Chat;
|
||||
import de.tudbut.tools.Lock;
|
||||
import hint.Mobf;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
|
@ -20,7 +21,7 @@ import java.lang.reflect.Method;
|
|||
import java.security.SecureRandom;
|
||||
import java.util.Arrays;
|
||||
|
||||
|
||||
@Mobf("annotation")
|
||||
public class BaseBand {
|
||||
public static final Logger LOGGER = LogManager.getLogger("BaseBand");
|
||||
public static final SecureRandom RANDOM = new SecureRandom();
|
||||
|
|
9
Client/src/main/java/hint/Mobf.java
Normal file
9
Client/src/main/java/hint/Mobf.java
Normal file
|
@ -0,0 +1,9 @@
|
|||
package hint;
|
||||
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface Mobf {
|
||||
String value();
|
||||
}
|
2
mobf.sh
2
mobf.sh
|
@ -3,5 +3,5 @@
|
|||
curl https://data.tudbut.de/mobf.jar > mobf.jar
|
||||
for file in "$@" ; do
|
||||
echo "$file"
|
||||
java -jar mobf.jar !mixin !org/ !spotify !google !sun !oshi -k "$file" || exit 1
|
||||
java -jar mobf.jar !mixins !org/ !spotify !google !sun !oshi -k "$file" || exit 1
|
||||
done
|
Loading…
Add table
Reference in a new issue