Updated Water/Lava to use new methods

This commit is contained in:
Shoghi Cervantes 2015-03-17 21:22:51 +01:00
parent 5a35e7b058
commit 8169803bb4
No known key found for this signature in database
GPG Key ID: 78464DB0A7837F89
2 changed files with 3 additions and 6 deletions

View File

@ -21,6 +21,7 @@
namespace pocketmine\block;
use pocketmine\entity\Effect;
use pocketmine\entity\Entity;
use pocketmine\event\entity\EntityCombustByBlockEvent;
use pocketmine\event\entity\EntityDamageByBlockEvent;
@ -64,9 +65,7 @@ class Lava extends Liquid{
$entity->setOnFire($ev->getDuration());
}
if($entity instanceof Player){
$entity->onGround = true;
}
$entity->resetFallDistance();
}
public function place(Item $item, Block $block, Block $target, $face, $fx, $fy, $fz, Player $player = null){

View File

@ -47,9 +47,7 @@ class Water extends Liquid{
$entity->extinguish();
}
if($entity instanceof Player){
$entity->onGround = true;
}
$entity->resetFallDistance();
}
public function place(Item $item, Block $block, Block $target, $face, $fx, $fy, $fz, Player $player = null){