mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-21 18:36:40 +00:00
Increased Fence, Fence Gate and Stone Wall Y bounding box
This commit is contained in:
parent
8249cac592
commit
545f68382c
@ -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
|
||||
);
|
||||
}
|
||||
|
@ -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
|
||||
);
|
||||
}
|
||||
|
@ -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
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user