Skip to content

Commit

Permalink
fix: remove usage of securityconstants
Browse files Browse the repository at this point in the history
  • Loading branch information
Sychic committed May 3, 2024
1 parent a762fc4 commit 849f856
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
package gg.skytils.skytilsmod.tweaker;

import net.minecraftforge.fml.relauncher.FMLSecurityManager;
import sun.security.util.SecurityConstants;

import javax.swing.*;
import java.awt.*;
Expand All @@ -28,6 +27,7 @@
import java.io.File;
import java.lang.reflect.Field;
import java.security.AccessController;
import java.security.AllPermission;
import java.security.Permission;
import java.security.PrivilegedAction;

Expand Down Expand Up @@ -124,7 +124,7 @@ static void overrideSecurityManager(Boolean isForge) {
if (s.getClass().getClassLoader() != null) {
AccessController.doPrivileged((PrivilegedAction<Object>) () -> {
s.getClass().getProtectionDomain().implies
(SecurityConstants.ALL_PERMISSION);
(new AllPermission());
return null;
});
}
Expand Down

0 comments on commit 849f856

Please sign in to comment.