mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-19 17:36:34 +00:00
Fixed players not getting sound when they are harmed
This commit is contained in:
parent
a4735eaf76
commit
ddfc9d9ce1
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user