From 0c4ec9a724a26d3aaaa4ed23f990dcb3eeeb956c Mon Sep 17 00:00:00 2001 From: Muramasa Date: Sun, 21 Aug 2016 13:26:38 +0100 Subject: [PATCH] More compatibility fixes --- src/main/java/gregtech/api/enums/Materials.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/gregtech/api/enums/Materials.java b/src/main/java/gregtech/api/enums/Materials.java index 3f412ba3..f950ec3f 100644 --- a/src/main/java/gregtech/api/enums/Materials.java +++ b/src/main/java/gregtech/api/enums/Materials.java @@ -1805,6 +1805,11 @@ public class Materials implements IColorModulationContainer, ISubTagContainer { return mRGBa; } + /** This is for keeping compatiblity with addons mods (Such as TinkersGregworks) that looped over the old materials enum **/ + public String name() { + return mName; + } + /** This is for keeping compatiblity with addons mods (Such as TinkersGregworks) that looped over the old materials enum **/ public static Materials[] values() { return MATERIALS_ARRAY;