mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Fixed falling blocks getting moved by currents, closes #2080
This commit is contained in:
@ -1698,6 +1698,15 @@ abstract class Entity extends Location implements Metadatable, EntityIds{
|
||||
return $this->blocksAround;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether this entity can be moved by currents in liquids.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function canBeMovedByCurrents() : bool{
|
||||
return true;
|
||||
}
|
||||
|
||||
protected function checkBlockCollision(){
|
||||
$vector = new Vector3(0, 0, 0);
|
||||
|
||||
|
Reference in New Issue
Block a user