mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-10 07:31:32 +01:00
mappings fix
This commit is contained in:
parent
b08de1254d
commit
294a15797d
@ -12,10 +12,7 @@ import net.silentclient.client.config.ConfigManager;
|
|||||||
import net.silentclient.client.cosmetics.Cosmetics;
|
import net.silentclient.client.cosmetics.Cosmetics;
|
||||||
import net.silentclient.client.event.EventManager;
|
import net.silentclient.client.event.EventManager;
|
||||||
import net.silentclient.client.event.EventTarget;
|
import net.silentclient.client.event.EventTarget;
|
||||||
import net.silentclient.client.event.impl.ClientTickEvent;
|
import net.silentclient.client.event.impl.*;
|
||||||
import net.silentclient.client.event.impl.ConnectToServerEvent;
|
|
||||||
import net.silentclient.client.event.impl.ServerLeaveEvent;
|
|
||||||
import net.silentclient.client.event.impl.SingleplayerJoinEvent;
|
|
||||||
import net.silentclient.client.gui.GuiError;
|
import net.silentclient.client.gui.GuiError;
|
||||||
import net.silentclient.client.gui.font.SilentFontRenderer;
|
import net.silentclient.client.gui.font.SilentFontRenderer;
|
||||||
import net.silentclient.client.gui.lite.GuiNews;
|
import net.silentclient.client.gui.lite.GuiNews;
|
||||||
@ -25,6 +22,7 @@ import net.silentclient.client.gui.modmenu.ModMenu;
|
|||||||
import net.silentclient.client.gui.silentmainmenu.SilentMainMenu;
|
import net.silentclient.client.gui.silentmainmenu.SilentMainMenu;
|
||||||
import net.silentclient.client.gui.util.BackgroundPanorama;
|
import net.silentclient.client.gui.util.BackgroundPanorama;
|
||||||
import net.silentclient.client.keybinds.KeyBindManager;
|
import net.silentclient.client.keybinds.KeyBindManager;
|
||||||
|
import net.silentclient.client.mixin.accessors.MinecraftAccessor;
|
||||||
import net.silentclient.client.mixin.ducks.FontRendererExt;
|
import net.silentclient.client.mixin.ducks.FontRendererExt;
|
||||||
import net.silentclient.client.mods.ModInstances;
|
import net.silentclient.client.mods.ModInstances;
|
||||||
import net.silentclient.client.mods.SettingsManager;
|
import net.silentclient.client.mods.SettingsManager;
|
||||||
@ -470,6 +468,13 @@ public class Client {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@EventTarget
|
||||||
|
public void onMouseClick(EventClickMouse event) {
|
||||||
|
if(event.getButton() == 0) {
|
||||||
|
((MinecraftAccessor) Minecraft.getMinecraft()).setLeftClickCounter(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@EventTarget
|
@EventTarget
|
||||||
public void onServerConnect(ConnectToServerEvent event) {
|
public void onServerConnect(ConnectToServerEvent event) {
|
||||||
ping = 0;
|
ping = 0;
|
||||||
|
@ -159,10 +159,10 @@ public final class FontRendererHook {
|
|||||||
|
|
||||||
GlStateManager.bindTexture(glTextureId);
|
GlStateManager.bindTexture(glTextureId);
|
||||||
GlStateManager.translate(posX, posY, 0F);
|
GlStateManager.translate(posX, posY, 0F);
|
||||||
Field field = GlStateManager.class.getDeclaredField("textureState");
|
Field field = GlStateManager.class.getDeclaredField(ClientUtils.isDevelopment() ? "textureState" : "p");
|
||||||
field.setAccessible(true);
|
field.setAccessible(true);
|
||||||
|
|
||||||
Field field2 = GlStateManager.class.getDeclaredField("activeTextureUnit");
|
Field field2 = GlStateManager.class.getDeclaredField(ClientUtils.isDevelopment() ? "activeTextureUnit" : "o");
|
||||||
field2.setAccessible(true);
|
field2.setAccessible(true);
|
||||||
|
|
||||||
final GlStateManager.TextureState[] textureStates = (GlStateManager.TextureState[]) field.get(new GlStateManager());
|
final GlStateManager.TextureState[] textureStates = (GlStateManager.TextureState[]) field.get(new GlStateManager());
|
||||||
@ -178,7 +178,7 @@ public final class FontRendererHook {
|
|||||||
// Call so states in game know the texture was changed.
|
// Call so states in game know the texture was changed.
|
||||||
// Otherwise, the game won't know the active texture was changed on the GPU
|
// Otherwise, the game won't know the active texture was changed on the GPU
|
||||||
textureState.textureName = glTextureId;
|
textureState.textureName = glTextureId;
|
||||||
Field colorStateField = GlStateManager.class.getDeclaredField("colorState");
|
Field colorStateField = GlStateManager.class.getDeclaredField(ClientUtils.isDevelopment() ? "colorState" : "t");
|
||||||
colorStateField.setAccessible(true);
|
colorStateField.setAccessible(true);
|
||||||
|
|
||||||
// Save thing as texture, it updated in GL, so we need to update the MC cache of that value
|
// Save thing as texture, it updated in GL, so we need to update the MC cache of that value
|
||||||
|
Loading…
Reference in New Issue
Block a user