fix toolbar preview for non-player entities
This commit is contained in:
parent
bea7626042
commit
9ef6ab626e
@ -389,9 +389,11 @@ 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;
|
||||||
|
if(this.parent == Globals.playerEntity){
|
||||||
ToolbarPreviewWindow.reveal();
|
ToolbarPreviewWindow.reveal();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user