-
-
Notifications
You must be signed in to change notification settings - Fork 961
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Light updates seem to have no effect #304
Comments
Can you try to reproduce this with a vanilla server ? (it's well possible we are not getting the light correctly, I don't think anybody ever used this before) |
Restarting server or reloging has no effect. The light is allways 0. |
Vanilla is what we used to test node-mc-proto and mineflayer. That's why we always ask to reproduce on vanilla, allows us to see if it's an impl discrepency or just use doing it wrong ^^ |
Ok this is happening both in vanilla and spigot. It also seems that it's not due to block update problem but generally parsing the light value. |
This might be related to how light is deserialized ( https://github.com/andrewrk/mineflayer/blob/master/lib/plugins/blocks.js#L63 ), might be worth looking into. |
Ok so I can confirm light is broken, I added an information in chatterbox to check this (with the block command). |
Will be fixed by #334 |
reason why : https://github.com/PrismarineJS/mineflayer/blob/master/lib/plugins/blocks.js#L64 Ways to fix that:
I prefer 2 since that's what we will do eventually anyway. |
should be fixed by #465 : needs to be checked |
appears to still not be working in vanilla all the time, sometimes is ok. is there an update function I can call force recheck or ? |
You cannot force the server to do anything. However you can listen to the
block update event ( see the doc) and only read the light value when the
block got updated.
…On Thu, Mar 30, 2017, 14:19 falazar ***@***.***> wrote:
appears to still not be working in vanilla all the time, sometimes is ok.
will check for light, add three torches, and still say it is dark.
is there an update function I can call force recheck or ?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#304 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACPN_pfSE1kSGG9l6R2F9YJ6rt1gBFD9ks5rq53DgaJpZM4FWNtB>
.
|
Using BlockFinder plugin I wrote a simple script to find nearby unlit blocks (those that allow mob spawning) and announce the coordinates and type of the darkest one of these. However as I place torches, the bot still announces the same blocks. Something is wrong with
block.light
. Maybe spigot server isn't sending it correctly?The text was updated successfully, but these errors were encountered: