mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-13 13:25:16 +00:00
Make DragonEgg::teleport public (#2992)
This commit is contained in:
parent
5b02ca8a64
commit
02bbf50dbe
@ -61,7 +61,7 @@ class DragonEgg extends Transparent implements Fallable{
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function teleport() : void{
|
public function teleport() : void{
|
||||||
for($tries = 0; $tries < 16; ++$tries){
|
for($tries = 0; $tries < 16; ++$tries){
|
||||||
$block = $this->world->getBlockAt(
|
$block = $this->world->getBlockAt(
|
||||||
$this->x + mt_rand(-16, 16),
|
$this->x + mt_rand(-16, 16),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user