Fix spectating when clicking with unlocked cursor (fixes #224)

> If you misclick the add keyframe button or something, you end up specating
instead and you have to find the camera angle again
This commit is contained in:
Jonas Herzig
2020-06-21 18:00:45 +02:00
parent 04c902a792
commit 5f284fcd3d

View File

@@ -574,7 +574,7 @@ public class CameraEntity
private void handleInputEvents() {
if (this.client.options.keyAttack.wasPressed() || this.client.options.keyUse.wasPressed()) {
if (canSpectate(this.client.targetedEntity)) {
if (this.client.currentScreen == null && canSpectate(this.client.targetedEntity)) {
ReplayModReplay.instance.getReplayHandler().spectateEntity(
//#if MC<=10710
//$$ (EntityLivingBase)