Git Product home page Git Product logo

Comments (5)

xaanndeer avatar xaanndeer commented on August 15, 2024 1

@n0ct My bad, I've provided the needed information in my previous reply.

from lightapi.

Qveshn avatar Qveshn commented on August 15, 2024
  1. What server implementaion (bukkit,spigot,paper,...) and version do you use?
  2. Does the light disappear immediately (1-2 server ticks) after creating or after a few or more seconds?
  3. Could you check light level after it disappeared? location.getBlock().getLightFromBlocks();

May be there is an issue in LightAPI, but first please answer three questions above

from lightapi.

n0ct avatar n0ct commented on August 15, 2024

I managed to fix it => LasersEnigma 6.8.0: And let there be light

The solution I used:

  • Of course, I don't use the createLight function everywhere all the time, I only use it where new light sources need to be placed and update the corresponding chunks.

  • Of couse, I don't use the deleteLight function everywhere all the time, I only use it where old light sources need to be removed and update the corresponding chunks .

  • But at last, when no change is required during an iteration (no new/removed light locations), I will refresh all the lights sources one last time by recreating each of them and update the corresponding chunks (see here).

So I will only answer your first question: Spigot 1.16.3

The problem was probably related to gradually placing (tick after tick) several light sources next to each other. It was as if the old light sources had disappeared.

You can close the issue if you don't want to investigate further.

from lightapi.

xaanndeer avatar xaanndeer commented on August 15, 2024

I'm experiencing the same problem, light sources created by LightAPI disappear when creating new light sources with LightAPI

  1. I'm running Paper version 418 (1.16.5)
  2. It's kinda hard to tell since the lights are overlapping eachother
  3. Light levels seem to stay the same

from lightapi.

n0ct avatar n0ct commented on August 15, 2024

@xaanndeer I suppose they will need the same informations they asked me in order to solve your issue.
you may also have to give them a link to your code in order to let them check your way to interact with their API.

Meanwhile you can probably use the same workaround I used : When it is required, in a specific area, recreate all light sources.

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.