Skip to content

Commit 440e28b

Browse files
committed
fix: cannot launch game when Create not loaded
1 parent 8d24294 commit 440e28b

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

src/integration/kotlin/hiiragi283/ragium/setup/RagiumIntegrationItems.kt

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -248,17 +248,20 @@ object RagiumIntegrationItems {
248248
for (tool: ItemLike in TOOLS.columnValues(RagiumMaterialKeys.RAGI_CRYSTAL)) {
249249
setEnch(tool, Enchantments.MENDING)
250250
}
251-
event.modify(getSandPaper(RagiumMaterialKeys.RAGI_CRYSTAL)) { builder ->
252-
builder.set(DataComponents.MAX_DAMAGE, 8 * 8)
253-
}
254-
event.modify(getSandPaper(RagiumMaterialKeys.IRIDESCENTIUM)) { builder ->
255-
builder.set(DataComponents.ENCHANTMENT_GLINT_OVERRIDE, true)
256-
builder.set(DataComponents.RARITY, Rarity.EPIC)
257-
builder.set(DataComponents.UNBREAKABLE, Unbreakable(true))
251+
// Create
252+
if (RagiumIntegration.isLoaded(RagiumConst.CREATE)) {
253+
event.modify(getSandPaper(RagiumMaterialKeys.RAGI_CRYSTAL)) { builder ->
254+
builder.set(DataComponents.MAX_DAMAGE, 8 * 8)
255+
}
256+
event.modify(getSandPaper(RagiumMaterialKeys.IRIDESCENTIUM)) { builder ->
257+
builder.set(DataComponents.ENCHANTMENT_GLINT_OVERRIDE, true)
258+
builder.set(DataComponents.RARITY, Rarity.EPIC)
259+
builder.set(DataComponents.UNBREAKABLE, Unbreakable(true))
260+
}
258261
}
259262

260263
// Mekanism
261-
if (RagiumIntegration.isLoaded(RagiumConst.CREATE)) {
264+
if (RagiumIntegration.isLoaded(RagiumConst.MEKANISM)) {
262265
modify(MekanismItems.YELLOW_CAKE_URANIUM, DataComponents.FOOD, RagiumFoods.YELLOW_CAKE)
263266
}
264267
}

0 commit comments

Comments
 (0)