From 85bc2dcafb781e0b6e8b3cc91a7efafd630ae419 Mon Sep 17 00:00:00 2001 From: nopo Date: Sun, 28 Aug 2022 16:06:41 +1000 Subject: Added 1.12.2 support --- src/main/java/com/example/ExampleMod.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/com/example/ExampleMod.java b/src/main/java/com/example/ExampleMod.java index 2ce1671..fc9dd0d 100644 --- a/src/main/java/com/example/ExampleMod.java +++ b/src/main/java/com/example/ExampleMod.java @@ -9,8 +9,7 @@ import net.minecraftforge.fml.common.event.FMLInitializationEvent; public class ExampleMod { @Mod.EventHandler public void init(FMLInitializationEvent event) { - System.out.println("Dirt: " + Blocks.dirt.getUnlocalizedName()); - // Below is a demonstration of an access-transformed class access. - System.out.println("Color State: " + new GlStateManager.Color()); + System.out.println("Dirt: " + Blocks.DIRT.getTranslationKey()); + System.out.println("Color State: " + new GlStateManager.Color()); } } -- cgit