Instantiating a page shouldn't cause it to automatically open.

This commit is contained in:
Keir 2015-11-03 17:03:09 +00:00
parent bd6ce21cf7
commit 72b650086d
2 changed files with 1 additions and 2 deletions

View File

@ -34,7 +34,7 @@ public class ReportCommand extends CommandBase<ReportPlugin>
if (reportedPlayer != null)
{
new ReportPage(Plugin, player, reportedPlayer, reason);
new ReportPage(Plugin, player, reportedPlayer, reason).openInventory();
}
else
{

View File

@ -40,7 +40,6 @@ public class ReportPage extends SimpleGui
this._reason = reason;
buildPage();
openInventory();
}
private void buildPage()