Skip to content

Commit cf38175

Browse files
committed
missing thing to make sure custom power units always get datagen
1 parent 35447e2 commit cf38175

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/net/neganote/gtutilities/common/item/UtilToolItems.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package net.neganote.gtutilities.common.item;
22

3+
import com.gregtechceu.gtceu.GTCEu;
34
import com.gregtechceu.gtceu.api.GTValues;
45
import com.gregtechceu.gtceu.api.item.ComponentItem;
56
import com.gregtechceu.gtceu.api.item.component.ElectricStats;
@@ -20,7 +21,7 @@ public class UtilToolItems {
2021

2122
static {
2223

23-
if (UtilConfig.INSTANCE.features.customLuVToolsEnabled) {
24+
if (UtilConfig.INSTANCE.features.customLuVToolsEnabled || GTCEu.isDataGen()) {
2425
POWER_UNIT_LUV = REGISTRATE.item("luv_power_unit", ComponentItem::create)
2526
.lang("LuV Power Unit")
2627
.properties(p -> p.stacksTo(8))
@@ -29,7 +30,7 @@ public class UtilToolItems {
2930
.register();
3031
}
3132

32-
if (UtilConfig.INSTANCE.features.customZPMToolsEnabled) {
33+
if (UtilConfig.INSTANCE.features.customZPMToolsEnabled || GTCEu.isDataGen()) {
3334
POWER_UNIT_ZPM = REGISTRATE.item("zpm_power_unit", ComponentItem::create)
3435
.lang("ZPM Power Unit")
3536
.properties(p -> p.stacksTo(8))

0 commit comments

Comments
 (0)