aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/UpdateMobEffectPacket.h
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.World/UpdateMobEffectPacket.h')
-rw-r--r--Minecraft.World/UpdateMobEffectPacket.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Minecraft.World/UpdateMobEffectPacket.h b/Minecraft.World/UpdateMobEffectPacket.h
index 39eb98e9..48462550 100644
--- a/Minecraft.World/UpdateMobEffectPacket.h
+++ b/Minecraft.World/UpdateMobEffectPacket.h
@@ -24,6 +24,6 @@ public:
virtual bool isInvalidatedBy(shared_ptr<Packet> packet);
public:
- static shared_ptr<Packet> create() { return shared_ptr<Packet>(new UpdateMobEffectPacket()); }
+ static shared_ptr<Packet> create() { return std::make_shared<UpdateMobEffectPacket>(); }
virtual int getId() { return 41; }
}; \ No newline at end of file