mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-28 19:49:06 +00:00
Merge branch 'v3.4.3' into iris4
This commit is contained in:
@@ -54,6 +54,18 @@ public class WrappedField<C, T> {
|
||||
}
|
||||
}
|
||||
|
||||
public void set(T value) throws IllegalAccessException {
|
||||
set(null, value);
|
||||
}
|
||||
|
||||
public void set(C instance, T value) throws IllegalAccessException {
|
||||
if (field == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
field.set(instance, value);
|
||||
}
|
||||
|
||||
public boolean hasFailed() {
|
||||
return field == null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user