Compare commits
2 Commits
b89ab99928
...
c993621bdb
Author | SHA1 | Date | |
---|---|---|---|
c993621bdb | |||
8ae9a4f7c4 |
@ -28,19 +28,12 @@ public class AngleViewHandler {
|
||||
while (keyBinding.wasPressed()) {
|
||||
ClientPlayerEntity player = mc.player;
|
||||
if(player == null) return;
|
||||
float oldYaw = player.getYaw();
|
||||
float oldPitch = player.getPitch();
|
||||
player.setYaw(angle.yaw);
|
||||
player.setPitch(angle.pitch);
|
||||
|
||||
scheduler.schedule(() -> {
|
||||
if(player == null) return;
|
||||
player.setPitch(-90);
|
||||
scheduler.schedule(() -> {
|
||||
if(player == null) return;
|
||||
player.setYaw(oldYaw);
|
||||
player.setPitch(oldPitch);
|
||||
}, 1500, TimeUnit.MILLISECONDS);
|
||||
}, 1500, TimeUnit.MILLISECONDS);
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user