mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-14 07:05:40 -04:00
Another attempt to fix Forge crash
This commit is contained in:
parent
b7e9b6a80f
commit
3055f41e59
@ -621,7 +621,7 @@ public final class Tools
|
|||||||
totalArgList.addAll(Arrays.asList(inheritsVer.arguments.game));
|
totalArgList.addAll(Arrays.asList(inheritsVer.arguments.game));
|
||||||
totalArgList.addAll(Arrays.asList(customVer.arguments.game));
|
totalArgList.addAll(Arrays.asList(customVer.arguments.game));
|
||||||
|
|
||||||
customVer.arguments.game = totalArgList.toArray(new Object[0]);
|
inheritsVer.arguments.game = totalArgList.toArray(new Object[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
return inheritsVer;
|
return inheritsVer;
|
||||||
@ -638,7 +638,7 @@ public final class Tools
|
|||||||
try {
|
try {
|
||||||
Field fieldA = fromVer.getClass().getDeclaredField(key);
|
Field fieldA = fromVer.getClass().getDeclaredField(key);
|
||||||
value = fieldA.get(fromVer);
|
value = fieldA.get(fromVer);
|
||||||
if (value != null || ((value instanceof String) && !((String) value).isEmpty())) {
|
if (((value instanceof String) && !((String) value).isEmpty()) || value != null) {
|
||||||
Field fieldB = targetVer.getClass().getDeclaredField(key);
|
Field fieldB = targetVer.getClass().getDeclaredField(key);
|
||||||
fieldB.set(targetVer, value);
|
fieldB.set(targetVer, value);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user