mirror of
https://github.com/Wurst-Imperium/Wurst7.git
synced 2024-09-20 01:12:13 +02:00
Fix Radar crash
This commit is contained in:
parent
6f12e90f04
commit
0be62903df
@ -7,8 +7,6 @@
|
||||
*/
|
||||
package net.wurstclient.clickgui.components;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import com.mojang.blaze3d.systems.RenderSystem;
|
||||
|
||||
import net.minecraft.client.network.ClientPlayerEntity;
|
||||
@ -26,6 +24,7 @@ import net.minecraft.entity.mob.WaterCreatureEntity;
|
||||
import net.minecraft.entity.passive.AnimalEntity;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.util.math.Matrix4f;
|
||||
import net.minecraft.util.math.Vec3f;
|
||||
import net.wurstclient.WurstClient;
|
||||
import net.wurstclient.clickgui.ClickGui;
|
||||
import net.wurstclient.clickgui.Component;
|
||||
@ -91,7 +90,8 @@ public final class RadarComponent extends Component
|
||||
|
||||
ClientPlayerEntity player = WurstClient.MC.player;
|
||||
if(!hack.isRotateEnabled())
|
||||
GL11.glRotated(180 + player.getYaw(), 0, 0, 1);
|
||||
matrixStack.multiply(
|
||||
Vec3f.POSITIVE_Z.getDegreesQuaternion(180 + player.getYaw()));
|
||||
|
||||
float xa1 = 0;
|
||||
float xa2 = 2;
|
||||
|
Loading…
Reference in New Issue
Block a user