Git Product home page Git Product logo

Comments (6)

Ne0shka avatar Ne0shka commented on September 18, 2024

Version: latest

from lightapi.

Ne0shka avatar Ne0shka commented on September 18, 2024

Paper version git-Paper-1618 (MC: 1.12.2) (Implementing API version 1.12.2-R0.1-SNAPSHOT)

from lightapi.

Qveshn avatar Qveshn commented on September 18, 2024

Hmm...
Sounds like the chunk is unloaded at this moment and Paper loads it with warning about async thread operation. Notes: The chunk is unloaded if players are far from it.

  1. How often does it happen? Can you stable reproduce this bug?
  2. What plugin does use LightAPI? Why lighting is changed at the position when players are far from there?

from lightapi.

Qveshn avatar Qveshn commented on September 18, 2024

also, what value does "view-distance" have in spigot.yml?

from lightapi.

Qveshn avatar Qveshn commented on September 18, 2024

I have reproduce this "bug". It is not quite a bug. It is warning. Paper warns if chunk loading is in non-main thread. Paper continues to load chunk after this warning.
I have made post to ask why it does so. The post is here:
https://papermc.io/forums/t/1-12-2-chunkioexecutor-syncchunkload-mcutil-ensuremain/3175

I think I know what to do in this case. I can just skip chunk-update-packets for players if chunk is unloaded. This is not very fine, but this will resolve this warnings.
I will think about this.

Only one thing I can not understand. Player had to stand near the chunk where the light was changed. Otherwise plugin should not send him notifications about chunk updates. Therefore, the distance between player and this chunk must be less or equal to "view-distance" (parameter in spigot.yml). And if so, then this chunk should not have been unloaded. Very strange...

from lightapi.

Ne0shka avatar Ne0shka commented on September 18, 2024

How often does it happen? Can you stable reproduce this bug?

This warning appears spontaneously after a short period of time (spam in the console)

What plugin does use LightAPI? Why lighting is changed at the position when players are far from there?

https://www.spigotmc.org/resources/interactionvisualizer-visualize-function-blocks-like-crafting-tables-with-animations-client-side.77050/

also, what value does "view-distance" have in spigot.yml?

view-distance: 10

from lightapi.

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.