aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/TileEntity.cpp
diff options
context:
space:
mode:
authorvoid_17 <heroerror3@gmail.com>2026-03-02 17:37:16 +0700
committervoid_17 <heroerror3@gmail.com>2026-03-02 17:37:16 +0700
commit119bff351450ea16ffda550b6e0f67379b29f708 (patch)
treed9f28714afd516bc2450f33b0a77c5e05ff4de90 /Minecraft.World/TileEntity.cpp
parent8a2a62ea1d47364f802cf9aae97668bc4a7007b5 (diff)
Revert "shared_ptr -> std::shared_ptr"
This reverts commit 7074f35e4ba831e358117842b99ee35b87f85ae5.
Diffstat (limited to 'Minecraft.World/TileEntity.cpp')
-rw-r--r--Minecraft.World/TileEntity.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Minecraft.World/TileEntity.cpp b/Minecraft.World/TileEntity.cpp
index d4874928..0790601d 100644
--- a/Minecraft.World/TileEntity.cpp
+++ b/Minecraft.World/TileEntity.cpp
@@ -89,14 +89,14 @@ void TileEntity::tick()
{
}
-std::shared_ptr<TileEntity> TileEntity::loadStatic(CompoundTag *tag)
+shared_ptr<TileEntity> TileEntity::loadStatic(CompoundTag *tag)
{
- std::shared_ptr<TileEntity> entity = nullptr;
+ shared_ptr<TileEntity> entity = nullptr;
//try
//{
AUTO_VAR(it, idCreateMap.find(tag->getString(L"id")));
- if (it != idCreateMap.end() ) entity = std::shared_ptr<TileEntity>(it->second());
+ if (it != idCreateMap.end() ) entity = shared_ptr<TileEntity>(it->second());
//}
//catch (Exception e)
//{
@@ -152,7 +152,7 @@ Tile *TileEntity::getTile()
return tile;
}
-std::shared_ptr<Packet> TileEntity::getUpdatePacket()
+shared_ptr<Packet> TileEntity::getUpdatePacket()
{
return nullptr;
}
@@ -200,7 +200,7 @@ void TileEntity::upgradeRenderRemoveStage()
}
// 4J Added
-void TileEntity::clone(std::shared_ptr<TileEntity> tileEntity)
+void TileEntity::clone(shared_ptr<TileEntity> tileEntity)
{
tileEntity->level = this->level;
tileEntity->x = this->x;