Merge remote-tracking branch 'origin/pr/3125' into 1.10.x
This commit is contained in:
commit
5d9169db0f
1 changed files with 2 additions and 2 deletions
|
@ -36,8 +36,8 @@ public class FMLSecurityManager extends SecurityManager {
|
||||||
if (permName.startsWith("exitVM"))
|
if (permName.startsWith("exitVM"))
|
||||||
{
|
{
|
||||||
Class<?>[] classContexts = getClassContext();
|
Class<?>[] classContexts = getClassContext();
|
||||||
String callingClass = classContexts.length > 3 ? classContexts[4].getName() : "none";
|
String callingClass = classContexts.length > 4 ? classContexts[4].getName() : "none";
|
||||||
String callingParent = classContexts.length > 4 ? classContexts[5].getName() : "none";
|
String callingParent = classContexts.length > 5 ? classContexts[5].getName() : "none";
|
||||||
// FML is allowed to call system exit and the Minecraft applet (from the quit button)
|
// FML is allowed to call system exit and the Minecraft applet (from the quit button)
|
||||||
if (!(callingClass.startsWith("net.minecraftforge.fml.")
|
if (!(callingClass.startsWith("net.minecraftforge.fml.")
|
||||||
|| "net.minecraft.server.dedicated.ServerHangWatchdog$1".equals(callingClass)
|
|| "net.minecraft.server.dedicated.ServerHangWatchdog$1".equals(callingClass)
|
||||||
|
|
Loading…
Reference in a new issue