Player: Fixed bad effects killing creative players

Players aren't supposed to take magic damage in creative... I don't know who added this, but it's wrong.
This commit is contained in:
Dylan K. Taylor 2017-12-10 20:50:50 +00:00
parent 44e06f6a32
commit 45ee115b67

View File

@ -3600,7 +3600,6 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
}
if($this->isCreative()
and $source->getCause() !== EntityDamageEvent::CAUSE_MAGIC
and $source->getCause() !== EntityDamageEvent::CAUSE_SUICIDE
and $source->getCause() !== EntityDamageEvent::CAUSE_VOID
){