Implement toString for GlobalProperties$Keys

Fixes the mixin environment config property keys having strange names
(e.g. org.spongepowered.asm.launch.GlobalProperties$Keys@fcd6521.preinit)
This commit is contained in:
makamys committed 2023-02-12 01:50:41 +01:00
1 parent fdcec19583
commit 6f074ea1d9
1 file changed
+8 -1
@@ -91,7 +91,14 @@ public final class GlobalProperties {
}
return key;
}
/* (non-Javadoc)
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
return this.name;
}
}
private static IGlobalPropertyService service;