Lets clean up the recipe window on player quit, just in case.

This commit is contained in:
KHobbits 2012-12-29 06:55:48 +00:00
parent 03445e5b9b
commit bbb478c51f

View File

@ -131,6 +131,10 @@ public class EssentialsPlayerListener implements Listener
{ {
user.setLastLocation(); user.setLastLocation();
} }
if (user.isRecipeSee())
{
user.getPlayer().getOpenInventory().getTopInventory().clear();
}
user.updateActivity(false); user.updateActivity(false);
user.dispose(); user.dispose();
} }