From ddfc9d9ce112bd6d9aa7bd3b5ced12c59748da49 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Tue, 9 Dec 2014 02:22:42 +0100 Subject: [PATCH] Fixed players not getting sound when they are harmed --- src/pocketmine/entity/Entity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/entity/Entity.php b/src/pocketmine/entity/Entity.php index 61fd1ead1..010263d31 100644 --- a/src/pocketmine/entity/Entity.php +++ b/src/pocketmine/entity/Entity.php @@ -403,7 +403,7 @@ abstract class Entity extends Location implements Metadatable{ * @param int|EntityDamageEvent $type */ public function setLastDamageCause($type){ - $this->lastDamageCause = $type instanceof EntityDamageEvent ? clone $type : $type; + $this->lastDamageCause = $type instanceof EntityDamageEvent ? $type : $type; } /**