implement video settings, implement slider and switch button, fix torch block light

This commit is contained in:
LabyStudio
2022-05-03 18:17:54 +02:00
parent e68243220a
commit 898d0b0a84
14 changed files with 322 additions and 101 deletions
@@ -73,8 +73,9 @@ export default class PlayerEntity extends EntityLiving {
}
turn(motionX, motionY) {
this.rotationYaw = this.rotationYaw + motionX * 0.15;
this.rotationPitch = this.rotationPitch - motionY * 0.15;
let sensitivity = this.minecraft.settings.sensitivity / 500;
this.rotationYaw = this.rotationYaw + motionX * sensitivity;
this.rotationPitch = this.rotationPitch - motionY * sensitivity;
if (this.rotationPitch < -90.0) {
this.rotationPitch = -90.0;