mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-20 15:41:33 +00:00
Resolved #3937
This commit is contained in:
@@ -53,11 +53,9 @@ use pocketmine\nbt\tag\Float;
|
|||||||
use pocketmine\nbt\tag\Int;
|
use pocketmine\nbt\tag\Int;
|
||||||
use pocketmine\nbt\tag\Short;
|
use pocketmine\nbt\tag\Short;
|
||||||
use pocketmine\nbt\tag\String;
|
use pocketmine\nbt\tag\String;
|
||||||
use pocketmine\network\Network;
|
|
||||||
use pocketmine\network\protocol\MobEffectPacket;
|
use pocketmine\network\protocol\MobEffectPacket;
|
||||||
use pocketmine\network\protocol\RemoveEntityPacket;
|
use pocketmine\network\protocol\RemoveEntityPacket;
|
||||||
use pocketmine\network\protocol\SetEntityDataPacket;
|
use pocketmine\network\protocol\SetEntityDataPacket;
|
||||||
|
|
||||||
use pocketmine\Player;
|
use pocketmine\Player;
|
||||||
use pocketmine\plugin\Plugin;
|
use pocketmine\plugin\Plugin;
|
||||||
use pocketmine\Server;
|
use pocketmine\Server;
|
||||||
@@ -599,7 +597,8 @@ abstract class Entity extends Location implements Metadatable{
|
|||||||
if($this->hasEffect(Effect::FIRE_RESISTANCE)
|
if($this->hasEffect(Effect::FIRE_RESISTANCE)
|
||||||
and $source->getCause() === EntityDamageEvent::CAUSE_FIRE
|
and $source->getCause() === EntityDamageEvent::CAUSE_FIRE
|
||||||
and $source->getCause() === EntityDamageEvent::CAUSE_FIRE_TICK
|
and $source->getCause() === EntityDamageEvent::CAUSE_FIRE_TICK
|
||||||
and $source->getCause() === EntityDamageEvent::CAUSE_LAVA){
|
and $source->getCause() === EntityDamageEvent::CAUSE_LAVA
|
||||||
|
){
|
||||||
$source->setCancelled();
|
$source->setCancelled();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -774,7 +773,7 @@ abstract class Entity extends Location implements Metadatable{
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($direction === 5){
|
if($direction === 5){
|
||||||
$this->motionY = $force;
|
$this->motionZ = $force;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -1548,7 +1547,7 @@ abstract class Entity extends Location implements Metadatable{
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param int $propertyId;
|
* @param int $propertyId
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @param bool $value
|
* @param bool $value
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user