1717import com .google .common .base .Charsets ;
1818import com .google .common .base .Joiner ;
1919import com .google .common .collect .ImmutableList ;
20- import com .google .common .eventbus .EventBus ;
2120import com .google .common .io .Files ;
2221
23- import net .minecraftforge .fml .common .DummyModContainer ;
24- import net .minecraftforge .fml .common .LoadController ;
25- import net .minecraftforge .fml .common .ModMetadata ;
26- import net .minecraftforge .fml .relauncher .FMLSecurityManager .ExitTrappedException ;
2722
2823// lower 1.7.10
2924@ cpw .mods .fml .relauncher .IFMLLoadingPlugin .Name (MOD_ID )
@@ -147,7 +142,7 @@ public void checkPermission(Permission perm) {
147142 || "net.minecraft.server.dedicated.DedicatedServer" .equals (callingClass ) &&
148143 "net.minecraft.server.MinecraftServer" .equals (callingParent ))
149144 )
150- throw new ExitTrappedException ( );
145+ throw new SecurityException ( "Can't exit by " + callingClass + " | " + callingParent );
151146 } else if ("setSecurityManager" .equals (permName ))
152147 throw new SecurityException ("Cannot replace the FML security manager" );
153148 }
@@ -160,28 +155,9 @@ public void checkPermission(Permission perm) {
160155
161156 @ Override
162157 public void injectData (Map <String , Object > data ) { }
163-
164- public static class ModContainer extends DummyModContainer {
165-
166- public ModContainer () { this (new ModMetadata ()); }
167-
168- public ModContainer (ModMetadata metadata ) {
169- super (metadata );
170- metadata .modId = MOD_ID ;
171- metadata .name = MOD_NAME ;
172- metadata .version = MOD_VERSION ;
173- metadata .authorList = ImmutableList .of ("NekoCaffine" , "exzhawk" , "tjsky" , "SeraphJACK" );
174- metadata .description = "Prevent all mod updates." ;
175- metadata .credits = "Mojang AB, and the Forge and FML guys." ;
176- }
177-
178- @ Override
179- public boolean registerBus (EventBus bus , LoadController controller ) { return true ; }
180-
181- }
182158
183159 @ Override
184- public String getModContainerClass () { return "nonupdate.forge.NonUpdate$ModContainer" ; }
160+ public String getModContainerClass () { return null ; }
185161
186162 @ Override
187163 public String [] getASMTransformerClass () { return null ; }
0 commit comments