Skip to content

Commit 6ff879e

Browse files
fix: server no longer crashes due to logger import from narrator
1 parent 93e1730 commit 6ff879e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/net/createcobblestone/neoforge/data/GeneratorType.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package net.createcobblestone.neoforge.data;
22

3+
import net.createcobblestone.neoforge.CreateCobblestoneNeoForge;
34
import net.createcobblestone.neoforge.index.Config;
45
import net.minecraft.core.component.DataComponents;
56
import net.minecraft.core.registries.BuiltInRegistries;
@@ -14,7 +15,6 @@
1415

1516
import java.util.*;
1617

17-
import static com.mojang.text2speech.Narrator.LOGGER;
1818
import static net.createcobblestone.neoforge.index.Blocks.MECHANICAL_GENERATOR_BLOCK;
1919

2020
public class GeneratorType {
@@ -56,7 +56,7 @@ public static void init() {
5656
ID_TO_TYPE.clear();
5757
BLOCK_TO_TYPE.clear();
5858

59-
LOGGER.info("Generator types cleared");
59+
CreateCobblestoneNeoForge.LOGGER.info("Generator types cleared");
6060
}
6161

6262
public static GeneratorType initializeNewType(String id, ResourceLocation block, int generatorStress, float outputPerSecondPerRpm, int generatorStorage){
@@ -66,7 +66,7 @@ public static GeneratorType initializeNewType(String id, ResourceLocation block,
6666

6767
GeneratorType existing = BLOCK_TO_TYPE.get(block);
6868
if (existing != null) {
69-
LOGGER.error("Error initializing generator, generator type with block {} already exists (existing id: {}, new id: {})",
69+
CreateCobblestoneNeoForge.LOGGER.error("Error initializing generator, generator type with block {} already exists (existing id: {}, new id: {})",
7070
block, existing.getId(), normId);
7171
return existing;
7272
}
@@ -75,7 +75,7 @@ public static GeneratorType initializeNewType(String id, ResourceLocation block,
7575
register(type);
7676

7777
if (Config.common().enableDebugLogging.get()) {
78-
LOGGER.info("Generator type {} initialized with block {} generatorStress {} outputPerSecondPerRpm {} generatorStorage {}",
78+
CreateCobblestoneNeoForge.LOGGER.info("Generator type {} initialized with block {} generatorStress {} outputPerSecondPerRpm {} generatorStorage {}",
7979
normId, block, generatorStress, outputPerSecondPerRpm, generatorStorage);
8080
}
8181
return type;
@@ -129,7 +129,7 @@ public boolean isLoaded() {
129129
if (type != null) return type;
130130

131131
if (DEEPSLATE_PATHS.contains(mapped)) {
132-
LOGGER.error("Deepslate generators are now added using a data pack. Please install it from the mod page. (generator: {})", mapped);
132+
CreateCobblestoneNeoForge.LOGGER.error("Deepslate generators are now added using a data pack. Please install it from the mod page. (generator: {})", mapped);
133133
}
134134
}
135135

0 commit comments

Comments
 (0)