1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Send player object to another thread

Discussion in 'Development' started by RoyalMCPE, Aug 4, 2019.

  1. RoyalMCPE

    RoyalMCPE Slime

    Messages:
    87
    I'm currently doing things with different threads, and a problem I'm currently running into is that I cannot send a player object to another thread as it is being serialized before being send to the thread. So my question is how would I be able to send the object?
     
  2. xZeroMCPE

    xZeroMCPE Witch

    Messages:
    67
    GitHub:
    xZeroMCPE
    Why would you want to do that? Just pass the data you need to the constructor, that could be their name, xuuid, vector, etc.

    There's no point to have the entire player object...
     
    Muqsit likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.