Comments (5)
@n0ct My bad, I've provided the needed information in my previous reply.
from lightapi.
- What server implementaion (bukkit,spigot,paper,...) and version do you use?
- Does the light disappear immediately (1-2 server ticks) after creating or after a few or more seconds?
- 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.
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.
I'm experiencing the same problem, light sources created by LightAPI disappear when creating new light sources with LightAPI
- I'm running Paper version 418 (1.16.5)
- It's kinda hard to tell since the lights are overlapping eachother
- Light levels seem to stay the same
from lightapi.
@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)
- Error when loading LightAPI on 1.15.2 Paper HOT 1
- How to implement LightAPI to a plugin? HOT 4
- Lights disappear on block update HOT 1
- Lighting only updates after a server restart HOT 2
- Performance HOT 6
- 1.17 HOT 3
- Error stopped chunks from loading HOT 10
- Tunity Starlight Support. HOT 21
- java.lang.ClassCastException: ca.spottedleaf.starlight.light.StarLightInterface$2 incompatible with net.minecraft.world.level.lighting.LightEngineBlock
- Can someone give plugin? HOT 2
- 1.17.1 Pupur Issue HOT 2
- don't see light HOT 13
- [WARN] LightAPIFork on paper 1.17.1-233 HOT 4
- No LightAPI implementations was found for Paper v1_17_R1 HOT 8
- [BUG] starlight.light.StarLightInterface HOT 1
- Error on StartUp
- Добавить поддержку starlight(в виде светлых блоков) для 1.17
- Update to support java 17 and mc 1.18
- Warn flood to console PufferFish core
- Classnotfoundexception on 1.18.2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lightapi.