mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 16:24:05 +00:00
Living: use Vector3->down() instead of subtract().
This commit is contained in:
parent
17dfd2cc52
commit
6b7e671794
@ -319,7 +319,7 @@ abstract class Living extends Entity{
|
||||
$fallBlockPos = $this->location->floor();
|
||||
$fallBlock = $this->getWorld()->getBlock($fallBlockPos);
|
||||
if(count($fallBlock->getCollisionBoxes()) === 0){
|
||||
$fallBlockPos = $fallBlockPos->subtract(0, 1, 0);
|
||||
$fallBlockPos = $fallBlockPos->down();
|
||||
$fallBlock = $this->getWorld()->getBlock($fallBlockPos);
|
||||
}
|
||||
if($fallBlock->getId() !== BlockLegacyIds::AIR){
|
||||
|
Loading…
x
Reference in New Issue
Block a user