Skip to content

Commit

Permalink
remove icon/title overwrites
Browse files Browse the repository at this point in the history
  • Loading branch information
C10udburst committed Apr 23, 2022
1 parent 36dcf97 commit 5bd22ef
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/main/java/me/ghosttypes/reaper/mixins/MincraftClientMixin.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
package me.ghosttypes.reaper.mixins;

import me.ghosttypes.reaper.Reaper;
import me.ghosttypes.reaper.events.InteractEvent;
import me.ghosttypes.reaper.modules.misc.MultiTask;
import me.ghosttypes.reaper.util.player.Interactions;
import meteordevelopment.meteorclient.MeteorClient;
import meteordevelopment.meteorclient.mixininterface.IMinecraftClient;
import meteordevelopment.meteorclient.systems.modules.Modules;
Expand All @@ -18,30 +16,13 @@
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;

import java.io.IOException;
import java.io.InputStream;

@Mixin(
value = {MinecraftClient.class},
priority = 1001
)
public abstract class MincraftClientMixin implements IMinecraftClient {

@Inject(method = "getWindowTitle", at = @At("HEAD"), cancellable = true)
public void getWindowTitle(CallbackInfoReturnable<String> ci){
String title = "Reaper " + Reaper.VERSION;
if (Interactions.isDeveloper()) title = "Reaper " + Reaper.VERSION + " [Developer Edition]";
if (Interactions.isBetaUser()) title = "Reaper " + Reaper.VERSION + " [Beta Edition]";
ci.setReturnValue(title);
}

@Redirect(method = "<init>", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/util/Window;setIcon(Ljava/io/InputStream;Ljava/io/InputStream;)V"))
public void setAlternativeWindowIcon(Window window, InputStream inputStream1, InputStream inputStream2) throws IOException {
window.setIcon(
Reaper.class.getResourceAsStream("/assets/reaper/16.png"),
Reaper.class.getResourceAsStream("/assets/reaper/32.png")
);
}

@Redirect(
method = {"handleBlockBreaking"},
at = @At(
Expand Down

0 comments on commit 5bd22ef

Please sign in to comment.