mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 20:14:31 +00:00
Fixed motion, physics
This commit is contained in:
@@ -297,10 +297,9 @@ abstract class Entity extends Position implements Metadatable{
|
||||
$diffY = $y - $j;
|
||||
$diffZ = $z - $k;
|
||||
|
||||
$start = microtime(true);
|
||||
$list = $this->getLevel()->getCollisionBlocks($this->boundingBox);
|
||||
|
||||
if(count($list) === 0 and $this->getLevel()->isFullBlock(new Vector3($i, $j, $k))){
|
||||
if(count($list) === 0 and !$this->getLevel()->isFullBlock(new Vector3($i, $j, $k))){
|
||||
return false;
|
||||
}else{
|
||||
$flag = !$this->getLevel()->isFullBlock(new Vector3($i - 1, $j, $k));
|
||||
|
Reference in New Issue
Block a user