fixed ad astra's lamps so they actually emit light lmao
This commit is contained in:
14
kubejs/startup_scripts/ad_astra/modifications.js
Normal file
14
kubejs/startup_scripts/ad_astra/modifications.js
Normal 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
|
||||
})
|
||||
})
|
||||
}
|
||||
@@ -19,7 +19,7 @@ StartupEvents.registry('block', event => {
|
||||
* Событие изменения блоков.
|
||||
*/
|
||||
BlockEvents.modification(event => {
|
||||
// modifyFirmaCivBlocks(event)
|
||||
registerAdAstraBlockModifications(event)
|
||||
})
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user