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,9 +389,11 @@ public class ClientToolbarState implements BehaviorTree {
public void simulate(float deltaTime) {
if(this.previousFrameSlot != this.selectedSlot){
this.previousFrameSlot = this.selectedSlot;
if(this.parent == Globals.playerEntity){
ToolbarPreviewWindow.reveal();
}
}
}
/**
* <p>