Added option to change back content for usercontent

This commit is contained in:
Marcel Konrad
2019-11-11 23:08:20 +01:00
parent 6a3c762559
commit 3c5c8b0ec2
2 changed files with 34 additions and 1 deletions

View File

@@ -180,6 +180,17 @@ public class ContentUsercontent extends Content
return Contents.getRegisteredContent(this.content.getGui().getTab().getActiveContent());
}
@Override
public Content getBackContent()
{
if(this.content.getGui().getTab().getActiveContent() == null)
{
return super.getBackContent();
}
return Contents.getRegisteredContent(this.content.getGui().getTab().getBackContent());
}
@Override
public void onPlayerNameChanged(String username)
{