fixed ad astra's lamps so they actually emit light lmao

This commit is contained in:
Pyritie 2025-06-07 18:26:58 +01:00
parent 7075f7eff1
commit 5805f9c082
2 changed files with 15 additions and 1 deletions

View file

@ -0,0 +1,14 @@
// priority: 0
function registerAdAstraBlockModifications(event) {
// these lamps don't actually emit light for some reason
global.MINECRAFT_DYE_NAMES.forEach(color => {
event.modify(`ad_astra:${color}_industrial_lamp`, block => {
block.lightEmission = 15
})
event.modify(`ad_astra:small_${color}_industrial_lamp`, block => {
block.lightEmission = 15
})
})
}

View file

@ -19,7 +19,7 @@ StartupEvents.registry('block', event => {
* Событие изменения блоков.
*/
BlockEvents.modification(event => {
// modifyFirmaCivBlocks(event)
registerAdAstraBlockModifications(event)
})
/**