This commit is contained in:
PEMapModder 2016-02-12 14:08:59 +08:00
parent e5937926cd
commit 3b51d2c217

View File

@ -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
*/ */