Giter Site home page Giter Site logo

Comments (8)

cakoyo avatar cakoyo commented on June 14, 2024

What is packet.a()? I didn't find that method, could you point it a bit more clear?

from akarin.

Awamo avatar Awamo commented on June 14, 2024

NetworkManager -> protected void a

from akarin.

amadeusmz avatar amadeusmz commented on June 14, 2024

There is an update velocity code block in EntityTrackerEntry#track(List<EntityHuman> list), ( if (this.tracker.velocityChanged)), to fix this issue I move them to the main thread.
Also, calling PlayerVelocityEvent asynchronously may cause server crash.

from akarin.

cakoyo avatar cakoyo commented on June 14, 2024

@Awamo so what is 'set to true'?? I didn't saw any method accept a boolean argument there nor return type.

from akarin.

cakoyo avatar cakoyo commented on June 14, 2024

@MClausz I didn't call that method asynchronously, and since its caller is EntityTracker#updatePlayers() this method will be called every tick for every world, I don't think there is any extra delay compared with vanilla.

from akarin.

Awamo avatar Awamo commented on June 14, 2024

so go to Packet Class and you will get a boolean at the end of the code (i think boolean a) and you will get a return, just set it to true, and override the method ;)
sorry for answering so late

from akarin.

cakoyo avatar cakoyo commented on June 14, 2024

@Awamo which packet class? in networkmanager it's an interface....

from akarin.

cakoyo avatar cakoyo commented on June 14, 2024

I checked it again, there is default a() in 1.13.2, but not in 1.12.2. However, it's only used for exception handlers. I also did some test, idk how this thing reduces the delay.

from akarin.

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.