Fixed players not getting sound when they are harmed

This commit is contained in:
Shoghi Cervantes 2014-12-09 02:22:42 +01:00
parent a4735eaf76
commit ddfc9d9ce1

View File

@ -403,7 +403,7 @@ abstract class Entity extends Location implements Metadatable{
* @param int|EntityDamageEvent $type * @param int|EntityDamageEvent $type
*/ */
public function setLastDamageCause($type){ public function setLastDamageCause($type){
$this->lastDamageCause = $type instanceof EntityDamageEvent ? clone $type : $type; $this->lastDamageCause = $type instanceof EntityDamageEvent ? $type : $type;
} }
/** /**