mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-09 23:39:43 +00:00
Wall: minor BB calculation cleanup
This commit is contained in:
parent
a19651a8dc
commit
d6b720b55d
@ -87,13 +87,11 @@ class Wall extends Transparent{
|
|||||||
$inset = 0.3125;
|
$inset = 0.3125;
|
||||||
}
|
}
|
||||||
|
|
||||||
return new AxisAlignedBB(
|
return AxisAlignedBB::one()
|
||||||
($west ? 0 : $inset),
|
->extend(Facing::UP, 0.5)
|
||||||
0,
|
->trim(Facing::NORTH, $north ? 0 : $inset)
|
||||||
($north ? 0 : $inset),
|
->trim(Facing::SOUTH, $south ? 0 : $inset)
|
||||||
1 - ($east ? 0 : $inset),
|
->trim(Facing::WEST, $west ? 0 : $inset)
|
||||||
1.5,
|
->trim(Facing::EAST, $east ? 0 : $inset);
|
||||||
1 - ($south ? 0 : $inset)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user