Don't show ghosts when typing in chat (#8644)

* Don't show ghosts when typing in chat

* braint
This commit is contained in:
buthed010203 2023-05-26 17:57:24 -04:00 committed by GitHub
parent b21c0f4553
commit 4f34a9235c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -266,7 +266,7 @@ public class BlockRenderer{
public void drawDestroyed(){
if(!Core.settings.getBool("destroyedblocks")) return;
if(control.input.isPlacing() || control.input.isBreaking() || control.input.isRebuildSelecting()){
if(control.input.isPlacing() || control.input.isBreaking() || (control.input.isRebuildSelecting() && !scene.hasKeyboard())){
brokenFade = Mathf.lerpDelta(brokenFade, 1f, 0.1f);
}else{
brokenFade = Mathf.lerpDelta(brokenFade, 0f, 0.1f);