mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
Player: creative players should not be damaged by the void (#4978)
This commit is contained in:
parent
9930de01b9
commit
27056b6c37
@ -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){
|
||||
|
Loading…
x
Reference in New Issue
Block a user