From a408fec0b87e8032d0476c97264d8785ab7011fb Mon Sep 17 00:00:00 2001 From: Christian Date: Sat, 23 Mar 2013 16:01:20 -0400 Subject: [PATCH] Add some information, and a log message letting you know it worked --- fml/common/cpw/mods/fml/common/registry/GameData.java | 1 + fml/common/cpw/mods/fml/common/registry/GameRegistry.java | 3 +++ 2 files changed, 4 insertions(+) diff --git a/fml/common/cpw/mods/fml/common/registry/GameData.java b/fml/common/cpw/mods/fml/common/registry/GameData.java index 6af788e878..3d51b86a65 100644 --- a/fml/common/cpw/mods/fml/common/registry/GameData.java +++ b/fml/common/cpw/mods/fml/common/registry/GameData.java @@ -354,6 +354,7 @@ public class GameData { try { Files.write(mapJoiner.join(builder.build().entries()), f, Charsets.UTF_8); + FMLLog.log(Level.INFO, "Dumped item registry data to %s", f.getAbsolutePath()); } catch (IOException e) { diff --git a/fml/common/cpw/mods/fml/common/registry/GameRegistry.java b/fml/common/cpw/mods/fml/common/registry/GameRegistry.java index 8199b51448..5760f805cf 100644 --- a/fml/common/cpw/mods/fml/common/registry/GameRegistry.java +++ b/fml/common/cpw/mods/fml/common/registry/GameRegistry.java @@ -411,6 +411,9 @@ public class GameRegistry * * If it is built from a block, the metadata is by default the "wildcard" value. * + * Custom itemstacks can be dumped from minecraft by setting the system property fml.dumpRegistry to true + * (-Dfml.dumpRegistry=true on the command line will work) + * * @param modId The modid of the stack owner * @param name The name of the stack * @param stackSize The size of the stack returned