aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/UpdateAttributesPacket.h
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.World/UpdateAttributesPacket.h')
-rw-r--r--Minecraft.World/UpdateAttributesPacket.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Minecraft.World/UpdateAttributesPacket.h b/Minecraft.World/UpdateAttributesPacket.h
index 77ba08be..4f604e0d 100644
--- a/Minecraft.World/UpdateAttributesPacket.h
+++ b/Minecraft.World/UpdateAttributesPacket.h
@@ -41,6 +41,6 @@ public:
unordered_set<AttributeSnapshot *> getValues();
public:
- static shared_ptr<Packet> create() { return shared_ptr<Packet>(new UpdateAttributesPacket()); }
+ static shared_ptr<Packet> create() { return std::make_shared<UpdateAttributesPacket>(); }
virtual int getId() { return 44; }
}; \ No newline at end of file