Fix for task cancelling.
This commit is contained in:
parent
d2ab872856
commit
3622808e09
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user