fix toolbar preview for non-player entities

This commit is contained in:
austin 2025-05-13 14:30:08 -04:00
parent bea7626042
commit 9ef6ab626e

View File

@ -389,7 +389,9 @@ public class ClientToolbarState implements BehaviorTree {
public void simulate(float deltaTime) { public void simulate(float deltaTime) {
if(this.previousFrameSlot != this.selectedSlot){ if(this.previousFrameSlot != this.selectedSlot){
this.previousFrameSlot = this.selectedSlot; this.previousFrameSlot = this.selectedSlot;
ToolbarPreviewWindow.reveal(); if(this.parent == Globals.playerEntity){
ToolbarPreviewWindow.reveal();
}
} }
} }