This commit is contained in:
Shoghi Cervantes 2014-10-29 22:58:40 +01:00
parent c4c374e3fa
commit 8cb9dd9a14

View File

@ -2518,7 +2518,7 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
if($this->dead === true){
return;
}
if($this->isCreative() === 1){
if($this->isCreative()){
if($source instanceof EntityDamageEvent){
$cause = $source->getCause();
}else{