From f2467d3dbcaf1c25d1476193dac31635b2cf21e1 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Tue, 11 Jul 2017 10:37:01 +0100 Subject: [PATCH] Workaround for grass-path/farmland anti-flight issue, close #1170 --- src/pocketmine/block/Farmland.php | 2 +- src/pocketmine/block/GrassPath.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pocketmine/block/Farmland.php b/src/pocketmine/block/Farmland.php index 237fb87e7..32a438922 100644 --- a/src/pocketmine/block/Farmland.php +++ b/src/pocketmine/block/Farmland.php @@ -53,7 +53,7 @@ class Farmland extends Transparent{ $this->y, $this->z, $this->x + 1, - $this->y + 0.9375, + $this->y + 1, //TODO: this should be 0.9375, but MCPE currently treats them as a full block (https://bugs.mojang.com/browse/MCPE-12109) $this->z + 1 ); } diff --git a/src/pocketmine/block/GrassPath.php b/src/pocketmine/block/GrassPath.php index 49b7d5ba5..489b6a293 100644 --- a/src/pocketmine/block/GrassPath.php +++ b/src/pocketmine/block/GrassPath.php @@ -49,7 +49,7 @@ class GrassPath extends Transparent{ $this->y, $this->z, $this->x + 1, - $this->y + 0.9375, + $this->y + 1, //TODO: this should be 0.9375, but MCPE currently treats them as a full block (https://bugs.mojang.com/browse/MCPE-12109) $this->z + 1 ); }