More compatibility fixes
This commit is contained in:
parent
a0066b4a26
commit
0c4ec9a724
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue