In my head if (!condition1 && !condition2) {...} should work normally... right? But noooo in KJS it somehow returns false even if the conditions are both false
ServerEvents.recipes(event => {
// This is returning false despite the conditions being met
if (!Platform.isLoaded('aether') && !Platform.isLoaded('reliquary')) {
event.recipes.summoningrituals.altar('minecraft:ender_eye')
.itemOutput('endrem:cursed_eye')
.input([
'4x minecraft:lightning_rod',
'4x minecraft:amethyst_shard'
])
.id('kubejs:endrem/altar/cursed_eye_fallback')
}
if (Platform.isLoaded('aether') && Platform.isLoaded('reliquary')) {
event.recipes.summoningrituals.altar('minecraft:ender_eye')
.itemOutput('endrem:cursed_eye')
.input([
'4x minecraft:lightning_rod',
'4x minecraft:amethyst_shard',
'reliquary:rending_gale',
'aether:lightning_sword'
])
.id('kubejs:endrem/altar/cursed_eye')
}
})