Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Discussion How can we fix falling through the world when spawning?

Comments in 'General Discussion' started by HotPepperDaddy, Nov 17, 2014.

  1. HotPepperDaddy
    Offline

    HotPepperDaddy New Member

    Joined:
    Nov 9, 2014
    Posts:
    23
    Minecraft User:
    HotPepperDaddy
    I see this mentioned in many threads so obviously this is a known problem. I have the generator set to flat and it's still an issue.

    What is the real problem, and how do we go about fixing it?

    I'm also seeing this using the SignPortal plugin to teleport to another world. If I'm flying before using the sign I don't fall on the other side. However, I can't move around and when I leave fall mode I fall through the world and die.

    I'm using the head of the master branch and 0.10.0.

    Thanks for the input.
    xFlare, EvolSoft and LDX like this.
  2. HotPepperDaddy
    Offline

    HotPepperDaddy New Member

    Joined:
    Nov 9, 2014
    Posts:
    23
    Minecraft User:
    HotPepperDaddy
    Every time I join my world this happens. I had the same problem with the SignPortal plugin and as a workaround added 0.1 to the y coordinate of the position returned by getSafeSpawn(). In minecraft y is the vertical coordinate? I would have thought it was z.

    At any rate, I did this mild hack to get by.

    Code:
    diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php
    index 2b05bd4..13eb289 100644
    --- a/src/pocketmine/Player.php
    +++ b/src/pocketmine/Player.php
    @@ -647,6 +647,7 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
                            $this->dataPacket($pk);
    
                            $pos = $this->level->getSafeSpawn($this);
    +                       $pos->y += 0.1;
    
                            $this->server->getPluginManager()->callEvent($ev = new PlayerRespawnEvent($this, $pos));
    
    
  3. MobileCrafter
    Offline

    MobileCrafter New Member

    Joined:
    Sep 8, 2013
    Posts:
    27
    Make the spawn 2 blocks thick.
    This should fix it.

Share This Page

Advertisement