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; } /**