Skip to content

Commit

Permalink
Fixed kicked for flying when walking on lily pads (#7)
Browse files Browse the repository at this point in the history
Add an optional extended description…
  • Loading branch information
dktapps authored Oct 3, 2016
1 parent 535e1a0 commit 2b6d058
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 17 deletions.
5 changes: 1 addition & 4 deletions src/pocketmine/block/Flowable.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@

namespace pocketmine\block;




abstract class Flowable extends Transparent{

public function canBeFlowedInto(){
Expand All @@ -42,7 +39,7 @@ public function isSolid(){
return false;
}

public function getBoundingBox(){
protected function recalculateBoundingBox(){
return null;
}
}
18 changes: 5 additions & 13 deletions src/pocketmine/block/WaterLily.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ public function __construct($meta = 0){
$this->meta = $meta;
}

public function isSolid(){
return false;
}

public function getName(){
return "Lily Pad";
}
Expand All @@ -47,18 +43,14 @@ public function getHardness(){
return 0.6;
}

public function canPassThrough(){
return true;
}

protected function recalculateBoundingBox(){
return new AxisAlignedBB(
$this->x,
$this->x + 0.0625,
$this->y,
$this->z,
$this->x,
$this->y + 0.0625,
$this->z
$this->z + 0.0625,
$this->x + 0.9375,
$this->y + 0.015625,
$this->z + 0.9375
);
}

Expand Down

2 comments on commit 2b6d058

@XFuryMCPE
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add this to genisyss

@dktapps
Copy link
Member Author

@dktapps dktapps commented on 2b6d058 Oct 7, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stop spamming.

Please sign in to comment.