Use Debug.out() instead of System.out.println()

master
BodgeMaster 2022-12-15 12:48:07 +01:00
parent 27d19f57f0
commit 643cef87a7
1 changed files with 6 additions and 4 deletions

View File

@ -5,6 +5,7 @@ import lostcave.deathchests.util.Config;
import lostcave.deathchests.util.Debug;
import net.minecraft.init.Blocks;
import net.minecraftforge.common.MinecraftForge;
import java.io.File;
@ -27,7 +28,7 @@ public class DeathChests {
Debug.out("Received FMLConstructionEvent");
Config.configDir = Loader.instance().getConfigDir();
Debug.out("Config file is: " + Config.configDir.toString() + System.getProperty("file.separator") + Config.configFileName);
Config.loadConfig();
Debug.out("Loaded config.");
@ -39,18 +40,19 @@ public class DeathChests {
@EventHandler
public void init(FMLPreInitializationEvent event) {
System.out.println("Received FMLPreInitializationEvent");
Debug.out("Received FMLPreInitializationEvent");
}
@EventHandler
public void init(FMLInitializationEvent event) {
System.out.println("Received FMLInitializationEvent");
Debug.out("Received FMLInitializationEvent");
GameRegistry.registerBlock(new BlockDeathChest(), "death_chest");
// TODO (probably here): Add death event handler
}
@EventHandler
public void init(FMLPostInitializationEvent event) {
System.out.println("Received FMLPostInitializationEvent");
Debug.out("Received FMLPostInitializationEvent");
}
}