From 545f68382ca9cff0e73c4619fa58c7ff62356faa Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Sat, 22 Nov 2014 13:44:05 +0100 Subject: [PATCH] Increased Fence, Fence Gate and Stone Wall Y bounding box --- src/pocketmine/block/Fence.php | 2 +- src/pocketmine/block/FenceGate.php | 4 ++-- src/pocketmine/block/StoneWall.php | 5 +---- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/pocketmine/block/Fence.php b/src/pocketmine/block/Fence.php index f769fb37f..6a59263e6 100644 --- a/src/pocketmine/block/Fence.php +++ b/src/pocketmine/block/Fence.php @@ -47,7 +47,7 @@ class Fence extends Transparent{ $this->y, $this->z + $f2, $this->x + $f1, - $this->y + 1, + $this->y + 1.5, $this->z + $f3 ); } diff --git a/src/pocketmine/block/FenceGate.php b/src/pocketmine/block/FenceGate.php index 40e8f1c34..0835c5a5d 100644 --- a/src/pocketmine/block/FenceGate.php +++ b/src/pocketmine/block/FenceGate.php @@ -51,7 +51,7 @@ class FenceGate extends Transparent{ $this->y, $this->z + 0.375, $this->x + 1, - $this->y + 1, + $this->y + 1.5, $this->z + 0.625 ); }else{ @@ -60,7 +60,7 @@ class FenceGate extends Transparent{ $this->y, $this->z, $this->x + 0.625, - $this->y + 1, + $this->y + 1.5, $this->z + 1 ); } diff --git a/src/pocketmine/block/StoneWall.php b/src/pocketmine/block/StoneWall.php index 1c91a9680..cde98c444 100644 --- a/src/pocketmine/block/StoneWall.php +++ b/src/pocketmine/block/StoneWall.php @@ -47,14 +47,11 @@ class StoneWall extends Transparent{ $f1 = $flag3 ? 1 : 0.75; $f2 = $flag ? 0 : 0.25; $f3 = $flag1 ? 1 : 0.75; - $f4 = 1; if($flag and $flag1 and !$flag2 and !$flag3){ - $f4 = 0.8125; $f = 0.3125; $f1 = 0.6875; }elseif(!$flag and !$flag1 and $flag2 and $flag3){ - $f4 = 0.8125; $f2 = 0.3125; $f3 = 0.6875; } @@ -64,7 +61,7 @@ class StoneWall extends Transparent{ $this->y, $this->z + $f2, $this->x + $f1, - $this->y + $f4, + $this->y + 1.5, $this->z + $f3 ); }