Closed Boy0000 closed 3 years ago
I'm not sure, but there are some comments:
For example:
int blockLight = LightAPI.get().getLightLevel(worldName, blockX, blockY, blockZ, LightFlag.BLOCK_LIGHTING);
broadcastMessage("LightLevel: " + blockLight);
int resultCode = LightAPI.get().setLightLevel(worldName, blockX, blockY, blockZ, lightLevel);
switch (resultCode) {
case ResultCode.SUCCESS:
// The request was executed.
break;
case ResultCode.MOVED_TO_DEFERRED:
// The request has been moved to the queue and will be executed after a while.
break;
default:
broadcastMessage("Something is wrong. Result code:" + resultCode);
break;
}
light where im standing is 0 sky 0 block its Kotlin btw hence when lol
Check the name of the world. Code -2 means that the world is unavailable.
Yeah seems location.world.tostring was CraftWorld(name=world) so makes sense why it didnt work. Works after fixing this to be the actual worldname, though i had to hardcode it to the stringname, as world doesnt use Location but takes a string..
Please close this issue if your issue was fixed.
Probably not unknown to you, but figured I would mention it.
Trying to set light does nothing, and whenever i getLightLevel it returns -11
It also returns -11 even when im not setting and just getting the lightlevel
Not sure if im the one doing it wrong or if its just not fully working for Papers Tuinity merge just yet