0
0
mirror of https://github.com/Wurst-Imperium/Wurst7.git synced 2024-09-20 09:16:20 +02:00

Fix errors in commands

This commit is contained in:
Alexander01998 2021-03-15 13:42:00 +01:00
parent 002a8f2ae9
commit 3271715ae1
3 changed files with 10 additions and 5 deletions

View File

@ -10,6 +10,7 @@ package net.wurstclient.commands;
import java.util.Comparator;
import java.util.stream.StreamSupport;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.entity.LivingEntity;
import net.minecraft.util.math.BlockPos;
import net.wurstclient.ai.PathFinder;
@ -171,10 +172,11 @@ public final class GoToCmd extends Command
}
@Override
public void onRender(float partialTicks)
public void onRender(MatrixStack matrixStack, float partialTicks)
{
PathCmd pathCmd = WURST.getCmds().pathCmd;
pathFinder.renderPath(pathCmd.isDebugMode(), pathCmd.isDepthTest());
pathFinder.renderPath(matrixStack, pathCmd.isDebugMode(),
pathCmd.isDepthTest());
}
private void disable()

View File

@ -9,6 +9,7 @@ package net.wurstclient.commands;
import net.minecraft.client.gui.screen.ingame.InventoryScreen;
import net.minecraft.client.network.OtherClientPlayerEntity;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.entity.Entity;
import net.wurstclient.command.CmdException;
import net.wurstclient.command.CmdSyntaxError;
@ -44,7 +45,7 @@ public final class InvseeCmd extends Command implements RenderListener
}
@Override
public void onRender(float partialTicks)
public void onRender(MatrixStack matrixStack, float partialTicks)
{
boolean found = false;

View File

@ -11,6 +11,7 @@ import java.util.ArrayList;
import java.util.Comparator;
import java.util.stream.StreamSupport;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.entity.LivingEntity;
import net.minecraft.util.math.BlockPos;
import net.wurstclient.ai.PathFinder;
@ -192,9 +193,10 @@ public final class PathCmd extends Command
}
@Override
public void onRender(float partialTicks)
public void onRender(MatrixStack matrixStack, float partialTicks)
{
pathFinder.renderPath(debugMode.isChecked(), depthTest.isChecked());
pathFinder.renderPath(matrixStack, debugMode.isChecked(),
depthTest.isChecked());
}
public BlockPos getLastGoal()