Skip to content

Commit

Permalink
remove unused debugging code
Browse files Browse the repository at this point in the history
  • Loading branch information
DasBabyPixel committed Jul 5, 2024
1 parent 367b3b4 commit 1774e83
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,6 @@

public class FAWEReflectionUtilsTransformer implements Transformer {

public static void setFailsafeFieldValue(Field field, Object target, Object value)
throws NoSuchFieldException, IllegalAccessException {
field.setAccessible(true);
Field modifiersField = Field.class.getDeclaredField("modifiers");
modifiersField.setAccessible(true);
int modifiers = modifiersField.getInt(field);
modifiers &= 0xFFFFFFEF;
modifiersField.setInt(field, modifiers);
field.set(target, value);
}

@Override
public void transform(@NonNull String classname, @NonNull ClassNode classNode) {
for (var method : classNode.methods) {
Expand Down

0 comments on commit 1774e83

Please sign in to comment.