mirror of
https://github.com/rockyhawk64/CommandPanels.git
synced 2025-11-18 07:14:17 +01:00
fixes animations and updater
This commit is contained in:
parent
9436c93ef0
commit
1f98a868ca
@ -26,8 +26,11 @@ public class PanelSession {
|
||||
}
|
||||
|
||||
public void setPanel(Panel panel) {
|
||||
// First panel since session start
|
||||
if(this.panel == null) return;
|
||||
// First panel since session start, update and return
|
||||
if(this.panel == null) {
|
||||
this.panel = panel;
|
||||
return;
|
||||
}
|
||||
// Update previous panel if new panel is different
|
||||
if(!panel.getName().equals(this.panel.getName()))
|
||||
this.previous = this.panel;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user