File tree 1 file changed +7
-7
lines changed
src/main/java/net/minecraftforge/coremod/api
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -60,14 +60,14 @@ private static String map(String name, INameMappingService.Domain domain) {
60
60
map (f -> f .apply (domain , name )).orElse (name );
61
61
}
62
62
63
+ /**
64
+ * Checks if the given JVM property (or if the property prepended with {@code "coremod."}) is {@code true}.
65
+ *
66
+ * @param propertyName the property to check
67
+ * @return true if the property is true
68
+ */
63
69
public static boolean getSystemPropertyFlag (final String propertyName ) {
64
- return Boolean .getBoolean ("coremod." + propertyName ) || getSystemPropertyFlagOld (propertyName );
65
- }
66
-
67
- /** @deprecated Contains the old, bugged logic that {@link #getSystemPropertyFlag(String)} used to have. */
68
- @ Deprecated (forRemoval = true , since = "5.0" )
69
- private static boolean getSystemPropertyFlagOld (final String propertyName ) {
70
- return Boolean .getBoolean (System .getProperty ("coremod." + propertyName , "TRUE" ));
70
+ return Boolean .getBoolean (propertyName ) || Boolean .getBoolean ("coremod." + propertyName );
71
71
}
72
72
73
73
public enum InsertMode {
You can’t perform that action at this time.
0 commit comments