diff options
author | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2022-05-08 11:38:43 +0700 |
---|---|---|
committer | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2022-05-08 11:38:43 +0700 |
commit | 5abc943439c1439a98ca06feb6d740cb3c1fa159 (patch) | |
tree | a25a2b63bc7fe11bfc641f20ce09c845fee90870 /src/main/java/cc | |
parent | f91dbeef8de0913d584ff797efe8ba0d0d1833c0 (diff) | |
download | Chatting-5abc943439c1439a98ca06feb6d740cb3c1fa159.tar.gz Chatting-5abc943439c1439a98ca06feb6d740cb3c1fa159.tar.bz2 Chatting-5abc943439c1439a98ca06feb6d740cb3c1fa159.zip |
disable timestamps for now
Diffstat (limited to 'src/main/java/cc')
-rw-r--r-- | src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin.java b/src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin.java index 8f92e1e..1052593 100644 --- a/src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin.java +++ b/src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin.java @@ -71,6 +71,7 @@ public abstract class GuiNewChatMixin extends Gui implements GuiNewChatHook { handleChatTabMessage(chatComponent, chatLineId, updateCounter, displayOnly, ci); } + /*? @Unique private final SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss"); @ModifyArg(method = "setChatLine", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/ChatLine;<init>(ILnet/minecraft/util/IChatComponent;I)V")) @@ -81,6 +82,8 @@ public abstract class GuiNewChatMixin extends Gui implements GuiNewChatHook { return iChatComponent; } + */ + @Inject(method = "drawChat", at = @At("HEAD")) private void checkScreenshotKeybind(int j2, CallbackInfo ci) { if (Chatting.INSTANCE.getKeybind().isPressed()) { @@ -139,7 +142,7 @@ public abstract class GuiNewChatMixin extends Gui implements GuiNewChatHook { private int modifyYeah(int value) { return chatting$textOpacity = (int) (((float) (getChatOpen() ? 255 : value)) * (mc.gameSettings.chatOpacity * 0.9F + 0.1F)); } - + /*/ @Inject(method = "drawChat", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/renderer/GlStateManager;scale(FFF)V")) private void drawPre(int updateCounter, CallbackInfo ci) { RenderUtils.timestampPre(); @@ -150,6 +153,8 @@ public abstract class GuiNewChatMixin extends Gui implements GuiNewChatHook { RenderUtils.timestampPost(); } + */ + @Redirect(method = "drawChat", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/FontRenderer;drawStringWithShadow(Ljava/lang/String;FFI)I")) private int redirectDrawString(FontRenderer instance, String text, float x, float y, int color) { return ModCompatHooks.redirectDrawString(text, x, y, color); |