mirror of
https://github.com/barkeser2002/Tenet.git
synced 2026-09-25 07:20:02 +03:00
24 lines
692 B
Diff
24 lines
692 B
Diff
--- ../src-base/minecraft/cpw/mods/fml/relauncher/FMLSecurityManager.java
|
|
+++ ../src-work/minecraft/cpw/mods/fml/relauncher/FMLSecurityManager.java
|
|
@@ -10,6 +10,9 @@
|
|
*
|
|
*/
|
|
public class FMLSecurityManager extends SecurityManager {
|
|
+
|
|
+ public SecurityManager defman;
|
|
+
|
|
@Override
|
|
public void checkPermission(Permission perm)
|
|
{
|
|
@@ -29,6 +32,10 @@
|
|
{
|
|
throw new SecurityException("Cannot replace the FML security manager");
|
|
}
|
|
+ else if ("register".equals(permName))// Allow the default security policy to be taken into consideration for "register"-ing
|
|
+ {
|
|
+ defman.checkPermission(perm);
|
|
+ }
|
|
return;
|
|
}
|
|
|