MatrexsVigil / harvestcraft

All rights reserved - None of my artwork is available to be used for FREE in your game EVER. If you want to HIRE ME, please contact me. Thank you. This code is here for people to learn from and to help find bugs ONLY.
https://www.patreon.com/pamsmods
89 stars 85 forks source link

[1.12.1c] Candlelight bug #46

Closed axioanic closed 7 years ago

axioanic commented 7 years ago

I was really bummed to find out that the candles don't seem to produce any light so I looked into it.

The problem is line 10 in BlockPamCandle.java: setLightLevel(7F);

setLightLevel - Controls the light emission of the block. Note: This method takes a value from zero to one, not zero to fifteen. To calculate this value, take the light level you wish your block to emit and divide by 16. For instance a block which emits level 5 light should pass 5 / 16f to this method.

source: http://mcforge.readthedocs.io/en/latest/blocks/blocks/

Thanks for the mod btw, its the best.

MatrexsVigil commented 7 years ago

Fixed in 1.12.1c (coming soon)