Player: creative players should not be damaged by the void (#4978)

This commit is contained in:
ねらひかだ 2022-04-22 00:39:36 +09:00 committed by GitHub
parent 9930de01b9
commit 27056b6c37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2315,7 +2315,6 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{
if($this->isCreative()
&& $source->getCause() !== EntityDamageEvent::CAUSE_SUICIDE
&& $source->getCause() !== EntityDamageEvent::CAUSE_VOID
){
$source->cancel();
}elseif($this->allowFlight && $source->getCause() === EntityDamageEvent::CAUSE_FALL){