Code Monkey home page Code Monkey logo

Comments (6)

thomas-crane avatar thomas-crane commented on July 16, 2024

I thought this was fixed when I added

if(!portals.Exists(ptl => ptl.ObjectId == portalId))
{
        MoveToRealms(client);
        return;
}

To the attempt connection method, but I also had this problem last night. Any ideas?

from famebot.

moistmaster avatar moistmaster commented on July 16, 2024

hmm could you make it disconnect you so it walks back up on an interval

from famebot.

Azukee avatar Azukee commented on July 16, 2024

I'll be looking into fixing this if a fix hasn't been found yet, now that I have got a week off.

from famebot.

thomas-crane avatar thomas-crane commented on July 16, 2024

Thanks @AzukiMPGH. There is still no fix but I think the problem might be that when a portal disappears it doesn't actually get removed from the portals list and so the code in my earlier comment actually never runs.

from famebot.

Azukee avatar Azukee commented on July 16, 2024

I guess a cheap fix for this then would be to clear the portals array at the start of the OnUpdate method
devenv_2017-04-18_23-15-53

from famebot.

thomas-crane avatar thomas-crane commented on July 16, 2024

Fixed. See commit ef2b79c for details.
MoveToRealms(...) only works if gotoRealm is true, but after MoveToRealms(...) exits gotoRealm is set to false.
Setting gotoRealm to true before calling MoveToRealms(...) from AttemptConnection(...) fixed this.

from famebot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.