mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
Fixed netherite items burning in lava
This commit is contained in:
parent
4637aae621
commit
8414c78969
@ -519,7 +519,12 @@ abstract class Entity{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function attack(EntityDamageEvent $source) : void{
|
public function attack(EntityDamageEvent $source) : void{
|
||||||
if($this->isFireProof() && ($source->getCause() === EntityDamageEvent::CAUSE_FIRE || $source->getCause() === EntityDamageEvent::CAUSE_FIRE_TICK)){
|
if($this->isFireProof() && (
|
||||||
|
$source->getCause() === EntityDamageEvent::CAUSE_FIRE ||
|
||||||
|
$source->getCause() === EntityDamageEvent::CAUSE_FIRE_TICK ||
|
||||||
|
$source->getCause() === EntityDamageEvent::CAUSE_LAVA
|
||||||
|
)
|
||||||
|
){
|
||||||
$source->cancel();
|
$source->cancel();
|
||||||
}
|
}
|
||||||
$source->call();
|
$source->call();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user