Fix for task cancelling.

This commit is contained in:
Jonathan Williams 2013-09-19 02:39:53 -07:00
parent d2ab872856
commit 3622808e09

View File

@ -88,12 +88,12 @@ public class ConfirmationPage<PluginType extends MiniPlugin, ShopType extends Sh
protected void CancelClicked(Player player)
{
Plugin.GetScheduler().cancelTask(_taskId);
if (_returnPage != null)
Shop.OpenPageForPlayer(player, _returnPage);
else
player.closeInventory();
Plugin.GetScheduler().cancelTask(_taskId);
}
private void BuildSquareAt(int slot, ShopItem item, IButton button)