Skip to content
This repository was archived by the owner on Aug 6, 2023. It is now read-only.

Commit e082d3a

Browse files
committed
Fixed configuration bug, and made 1.12.x compatible
1 parent c4d5f35 commit e082d3a

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ compileJava {
2020
}
2121

2222
minecraft {
23-
version = "1.12.2-14.23.1.2581"
23+
version = "1.12-14.21.1.2387"
2424
runDir = "run"
2525

2626
// the mappings can be changed at any time, and must be in the following format.

gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# Sets default memory used for gradle commands. Can be overridden by user or command line properties.
22
# This is required to provide enough memory for the Minecraft decompilation process.
33
org.gradle.jvmargs=-Xmx3G
4+
mc_version=1.12
5+
top_mc_version=1.1x

src/main/java/com/mcmoddev/mmdlogger/MMDLogger.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public void preInit(FMLPreInitializationEvent event)
5858
@EventHandler
5959
public void postInit(FMLPostInitializationEvent event)
6060
{
61-
if (loggingOn) {
61+
if (loggingOn || tooltipsOn) {
6262
for (String oreName : OreDictionary.getOreNames()) {
6363
int oreID = OreDictionary.getOreID(oreName);
6464
List<ItemStack> items = OreDictionary.getOres(oreName);
@@ -70,7 +70,8 @@ public void postInit(FMLPostInitializationEvent event)
7070

7171
ItemToOreDictMap.put(Item.getIdFromItem(item) + ":" + meta, oreName);
7272

73-
logger.info("Ore Dictionary Entry: Ore Name: %s, Ore ID: %s, Unlocalised Name: %s, Block ID: %s, Block Meta: %s, Registry Name: %s", oreName, oreID, item.getUnlocalizedName(), Item.getIdFromItem(item), meta, item.getRegistryName());
73+
if (loggingOn)
74+
logger.info("Ore Dictionary Entry: Ore Name: %s, Ore ID: %s, Unlocalised Name: %s, Block ID: %s, Block Meta: %s, Registry Name: %s", oreName, oreID, item.getUnlocalizedName(), Item.getIdFromItem(item), meta, item.getRegistryName());
7475
}
7576
}
7677
}

0 commit comments

Comments
 (0)