mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-01 09:47:43 +00:00
Updated Water/Lava to use new methods
This commit is contained in:
parent
5a35e7b058
commit
8169803bb4
@ -21,6 +21,7 @@
|
|||||||
|
|
||||||
namespace pocketmine\block;
|
namespace pocketmine\block;
|
||||||
|
|
||||||
|
use pocketmine\entity\Effect;
|
||||||
use pocketmine\entity\Entity;
|
use pocketmine\entity\Entity;
|
||||||
use pocketmine\event\entity\EntityCombustByBlockEvent;
|
use pocketmine\event\entity\EntityCombustByBlockEvent;
|
||||||
use pocketmine\event\entity\EntityDamageByBlockEvent;
|
use pocketmine\event\entity\EntityDamageByBlockEvent;
|
||||||
@ -64,9 +65,7 @@ class Lava extends Liquid{
|
|||||||
$entity->setOnFire($ev->getDuration());
|
$entity->setOnFire($ev->getDuration());
|
||||||
}
|
}
|
||||||
|
|
||||||
if($entity instanceof Player){
|
$entity->resetFallDistance();
|
||||||
$entity->onGround = true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function place(Item $item, Block $block, Block $target, $face, $fx, $fy, $fz, Player $player = null){
|
public function place(Item $item, Block $block, Block $target, $face, $fx, $fy, $fz, Player $player = null){
|
||||||
|
@ -47,9 +47,7 @@ class Water extends Liquid{
|
|||||||
$entity->extinguish();
|
$entity->extinguish();
|
||||||
}
|
}
|
||||||
|
|
||||||
if($entity instanceof Player){
|
$entity->resetFallDistance();
|
||||||
$entity->onGround = true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function place(Item $item, Block $block, Block $target, $face, $fx, $fy, $fz, Player $player = null){
|
public function place(Item $item, Block $block, Block $target, $face, $fx, $fy, $fz, Player $player = null){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user