mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-08 00:05:42 +00:00
refactor: begin unglobbing std::vector
This commit is contained in:
@@ -159,7 +159,7 @@ bool EnchantmentMenu::clickMenuButton(std::shared_ptr<Player> player, int i)
|
||||
{
|
||||
bool isBook = item->id == Item::book_Id;
|
||||
|
||||
vector<EnchantmentInstance *> *newEnchantment = EnchantmentHelper::selectEnchantment(&random, item, costs[i]);
|
||||
std::vector<EnchantmentInstance *> *newEnchantment = EnchantmentHelper::selectEnchantment(&random, item, costs[i]);
|
||||
if (newEnchantment != NULL)
|
||||
{
|
||||
player->withdrawExperienceLevels(costs[i]);
|
||||
|
||||
Reference in New Issue
Block a user