aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/SkullTileEntity.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/SkullTileEntity.cpp
parent8a2a62ea1d47364f802cf9aae97668bc4a7007b5 (diff)
Revert "shared_ptr -> std::shared_ptr"
This reverts commit 7074f35e4ba831e358117842b99ee35b87f85ae5.
Diffstat (limited to 'Minecraft.World/SkullTileEntity.cpp')
-rw-r--r--Minecraft.World/SkullTileEntity.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Minecraft.World/SkullTileEntity.cpp b/Minecraft.World/SkullTileEntity.cpp
index e36f4e6a..ea19b446 100644
--- a/Minecraft.World/SkullTileEntity.cpp
+++ b/Minecraft.World/SkullTileEntity.cpp
@@ -26,11 +26,11 @@ void SkullTileEntity::load(CompoundTag *tag)
if (tag->contains(L"ExtraType")) extraType = tag->getString(L"ExtraType");
}
-std::shared_ptr<Packet> SkullTileEntity::getUpdatePacket()
+shared_ptr<Packet> SkullTileEntity::getUpdatePacket()
{
CompoundTag *tag = new CompoundTag();
save(tag);
- return std::shared_ptr<TileEntityDataPacket>(new TileEntityDataPacket(x, y, z, TileEntityDataPacket::TYPE_SKULL, tag));
+ return shared_ptr<TileEntityDataPacket>(new TileEntityDataPacket(x, y, z, TileEntityDataPacket::TYPE_SKULL, tag));
}
void SkullTileEntity::setSkullType(int skullType, const wstring &extra)
@@ -60,11 +60,11 @@ wstring SkullTileEntity::getExtraType()
}
// 4J Added
-std::shared_ptr<TileEntity> SkullTileEntity::clone()
+shared_ptr<TileEntity> SkullTileEntity::clone()
{
- std::shared_ptr<SkullTileEntity> result = std::shared_ptr<SkullTileEntity>( new SkullTileEntity() );
+ shared_ptr<SkullTileEntity> result = shared_ptr<SkullTileEntity>( new SkullTileEntity() );
TileEntity::clone(result);
-
+
result->skullType = skullType;
result->rotation = rotation;
result->extraType = extraType;