0
0
mirror of https://github.com/Wurst-Imperium/Wurst7.git synced 2024-09-20 01:12:13 +02:00
This commit is contained in:
Alexander01998 2019-09-26 13:56:05 +02:00
parent b90890650f
commit f97b64c718
5 changed files with 9 additions and 14 deletions

View File

@ -36,6 +36,7 @@ import net.wurstclient.update.WurstUpdater;
public enum WurstClient
{
INSTANCE;
public static final MinecraftClient MC = MinecraftClient.getInstance();
public static final IMinecraftClient IMC = (IMinecraftClient)MC;

View File

@ -26,8 +26,7 @@ import net.wurstclient.events.GetAmbientOcclusionLightLevelListener.GetAmbientOc
import net.wurstclient.events.IsNormalCubeListener.IsNormalCubeEvent;
@Mixin(BlockState.class)
public class BlockStateMixin
extends AbstractState<Block, BlockState>
public class BlockStateMixin extends AbstractState<Block, BlockState>
implements State<BlockState>
{
private BlockStateMixin(WurstClient wurst, Block object_1,

View File

@ -165,12 +165,9 @@ public final class NavigatorFeatureScreen extends NavigatorScreen
possibleKeybind.getDescription());
TreeMap<String, PossibleKeybind> existingKeybinds = new TreeMap<>();
boolean noKeybindsSet = true;
for(int i = 0; i < WurstClient.INSTANCE.getKeybinds()
.getAllKeybinds().size(); i++)
for(Keybind keybind : WurstClient.INSTANCE.getKeybinds()
.getAllKeybinds())
{
Keybind keybind =
WurstClient.INSTANCE.getKeybinds().getAllKeybinds().get(i);
String commands = keybind.getCommands();
commands = commands.replace(";", "\u00a7")
.replace("\u00a7\u00a7", ";");
@ -469,10 +466,8 @@ public final class NavigatorFeatureScreen extends NavigatorScreen
GL11.glPopMatrix();
// buttons below scissor box
for(int i = 0; i < buttons.size(); i++)
for(AbstractButtonWidget button : buttons)
{
AbstractButtonWidget button = buttons.get(i);
// positions
int x1 = button.x;
int x2 = x1 + button.getWidth();

View File

@ -208,9 +208,9 @@ public class NavigatorNewKeybindScreen extends NavigatorScreen
glDisable(GL_SCISSOR_TEST);
// buttons below scissor box
for(int i = 0; i < buttons.size(); i++)
for(AbstractButtonWidget button2 : buttons)
{
AbstractButtonWidget button = buttons.get(i);
AbstractButtonWidget button = button2;
// positions
int x1 = button.x;

View File

@ -185,9 +185,9 @@ public class NavigatorRemoveKeybindScreen extends NavigatorScreen
glDisable(GL_SCISSOR_TEST);
// buttons below scissor box
for(int i = 0; i < buttons.size(); i++)
for(AbstractButtonWidget button2 : buttons)
{
AbstractButtonWidget button = buttons.get(i);
AbstractButtonWidget button = button2;
// positions
int x1 = button.x;