diff options
| author | void_17 <heroerror3@gmail.com> | 2026-03-02 17:37:16 +0700 |
|---|---|---|
| committer | void_17 <heroerror3@gmail.com> | 2026-03-02 17:37:16 +0700 |
| commit | 119bff351450ea16ffda550b6e0f67379b29f708 (patch) | |
| tree | d9f28714afd516bc2450f33b0a77c5e05ff4de90 /Minecraft.World/ClientSideMerchant.cpp | |
| parent | 8a2a62ea1d47364f802cf9aae97668bc4a7007b5 (diff) | |
Revert "shared_ptr -> std::shared_ptr"
This reverts commit 7074f35e4ba831e358117842b99ee35b87f85ae5.
Diffstat (limited to 'Minecraft.World/ClientSideMerchant.cpp')
| -rw-r--r-- | Minecraft.World/ClientSideMerchant.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Minecraft.World/ClientSideMerchant.cpp b/Minecraft.World/ClientSideMerchant.cpp index 9719cd48..5d021c22 100644 --- a/Minecraft.World/ClientSideMerchant.cpp +++ b/Minecraft.World/ClientSideMerchant.cpp @@ -3,10 +3,10 @@ #include "net.minecraft.world.inventory.h" #include "ClientSideMerchant.h" -ClientSideMerchant::ClientSideMerchant(std::shared_ptr<Player> source, int name) +ClientSideMerchant::ClientSideMerchant(shared_ptr<Player> source, int name) { this->source = source; - // 4J Stu - Need to do this after creating as a std::shared_ptr + // 4J Stu - Need to do this after creating as a shared_ptr container = NULL; //new MerchantContainer(source, this); currentOffers = NULL; m_name = name; @@ -28,17 +28,17 @@ Container *ClientSideMerchant::getContainer() return container; } -std::shared_ptr<Player> ClientSideMerchant::getTradingPlayer() +shared_ptr<Player> ClientSideMerchant::getTradingPlayer() { return source; } -void ClientSideMerchant::setTradingPlayer(std::shared_ptr<Player> player) +void ClientSideMerchant::setTradingPlayer(shared_ptr<Player> player) { } -MerchantRecipeList *ClientSideMerchant::getOffers(std::shared_ptr<Player> forPlayer) +MerchantRecipeList *ClientSideMerchant::getOffers(shared_ptr<Player> forPlayer) { return currentOffers; } @@ -54,7 +54,7 @@ void ClientSideMerchant::notifyTrade(MerchantRecipe *activeRecipe) activeRecipe->increaseUses(); } -void ClientSideMerchant::notifyTradeUpdated(std::shared_ptr<ItemInstance> item) +void ClientSideMerchant::notifyTradeUpdated(shared_ptr<ItemInstance> item) { } |
