Help in loading chunks or why can't I set the passenger after teleporting

Discussion in 'Plugin Development' started by JoshuaBehrens, Jul 26, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    JoshuaBehrens

    Hey guys,

    in a plugin of mine I try to set the passenger. It's working when the chunks are already loaded, but when I set the passenger of a mob that is not in the player's loaded chunks, then the player is falling.

    I tried to pre-load the chunks with the Pre-Chunk- and the MapChunk-packets, but it's not working. Now I teleport the player to the mob and then set the passenger, but the player is just teleported.

    So how can I pre-load a chunk or how can I set the passenger directly after teleporting ?

    Thanks in advance
    Josh
     
  2. If you have the world you can do

    yourworld.loadChunk(x, z);
     
  3. Offline

    JoshuaBehrens

    I have a try. Wait
     
  4. Just let me know.
     
  5. Offline

    JoshuaBehrens

    No, it's not working. I'm setting the passenger, loading the chunk and the passenger is falling.
     
Thread Status:
Not open for further replies.

Share This Page