Fixed builds losing tokens.
This commit is contained in:
parent
923d2455d0
commit
2378df6191
@ -8,6 +8,7 @@ import mineplex.core.shop.ShopBase;
|
|||||||
import mineplex.core.shop.page.ShopPageBase;
|
import mineplex.core.shop.page.ShopPageBase;
|
||||||
import mineplex.core.common.CurrencyType;
|
import mineplex.core.common.CurrencyType;
|
||||||
import mineplex.minecraft.game.classcombat.Class.ClientClass;
|
import mineplex.minecraft.game.classcombat.Class.ClientClass;
|
||||||
|
import mineplex.minecraft.game.classcombat.Class.repository.token.CustomBuildToken;
|
||||||
import mineplex.minecraft.game.classcombat.shop.page.CustomBuildPage;
|
import mineplex.minecraft.game.classcombat.shop.page.CustomBuildPage;
|
||||||
|
|
||||||
public class ClassCombatShop extends ShopBase<ClassShopManager>
|
public class ClassCombatShop extends ShopBase<ClassShopManager>
|
||||||
@ -50,9 +51,11 @@ public class ClassCombatShop extends ShopBase<ClassShopManager>
|
|||||||
|
|
||||||
if (clientClass != null && clientClass.IsSavingCustomBuild())
|
if (clientClass != null && clientClass.IsSavingCustomBuild())
|
||||||
{
|
{
|
||||||
clientClass.SetActiveCustomBuild(clientClass.GetGameClass(), clientClass.GetSavingCustomBuild());
|
CustomBuildToken customBuild = clientClass.GetSavingCustomBuild();
|
||||||
clientClass.EquipCustomBuild(clientClass.GetSavingCustomBuild(), false);
|
|
||||||
clientClass.SaveActiveCustomBuild();
|
clientClass.SaveActiveCustomBuild();
|
||||||
|
clientClass.SetActiveCustomBuild(clientClass.GetGameClass(), customBuild);
|
||||||
|
clientClass.EquipCustomBuild(customBuild, false);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user