mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-01 15:49:54 +00:00
Bump API version to 1.6.1
This commit is contained in:
parent
119b429ab8
commit
4299ebebcc
@ -49,6 +49,10 @@ class Lava extends Liquid{
|
|||||||
if(!$ev->isCancelled()){
|
if(!$ev->isCancelled()){
|
||||||
$entity->setOnFire($ev->getDuration());
|
$entity->setOnFire($ev->getDuration());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($entity instanceof Player){
|
||||||
|
$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){
|
||||||
|
@ -36,6 +36,10 @@ class Water extends Liquid{
|
|||||||
if($entity->fireTicks > 0){
|
if($entity->fireTicks > 0){
|
||||||
$entity->extinguish();
|
$entity->extinguish();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($entity instanceof Player){
|
||||||
|
$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