mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 16:24:05 +00:00
Entity: Protect move() to avoid stupidity
This commit is contained in:
parent
ff5cb84b81
commit
797aabdf15
@ -1345,7 +1345,7 @@ abstract class Entity extends Location implements Metadatable, EntityIds{
|
||||
return $block->isSolid() and !$block->isTransparent() and $block->collidesWithBB($this->getBoundingBox());
|
||||
}
|
||||
|
||||
public function move(float $dx, float $dy, float $dz) : void{
|
||||
protected function move(float $dx, float $dy, float $dz) : void{
|
||||
$this->blocksAround = null;
|
||||
|
||||
Timings::$entityMoveTimer->startTiming();
|
||||
|
Loading…
x
Reference in New Issue
Block a user