From 7b46bab84daf504fb0e0c3cd9f83e58b43c718b4 Mon Sep 17 00:00:00 2001 From: Ross Allan Date: Thu, 18 Jul 2013 22:52:37 +0100 Subject: [PATCH] Should fix TagAPI freezing. Signed-off-by: Ross Allan --- resources/patches-deobfuscated.xml | 5 +++++ src/common/nallar/tickthreading/util/LocationUtil.java | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/resources/patches-deobfuscated.xml b/resources/patches-deobfuscated.xml index dfb01265..5addd581 100644 --- a/resources/patches-deobfuscated.xml +++ b/resources/patches-deobfuscated.xml @@ -2181,4 +2181,9 @@ queueChunkCoords + + + getName,check + + diff --git a/src/common/nallar/tickthreading/util/LocationUtil.java b/src/common/nallar/tickthreading/util/LocationUtil.java index 1e95714e..36e453c2 100644 --- a/src/common/nallar/tickthreading/util/LocationUtil.java +++ b/src/common/nallar/tickthreading/util/LocationUtil.java @@ -105,6 +105,10 @@ private static File getModsDirectory() { return new File(getServerDirectory(), "mods"); } + private static File getPluginsDirectory() { + return new File(getServerDirectory(), "plugins"); + } + public static List getJarLocations() { List jarLocations = new ArrayList(); File forgeJar = locationOf(net.minecraft.server.MinecraftServer.class); @@ -117,6 +121,7 @@ public static List getJarLocations() { jarLocations.add(minecraftJar); jarLocations.add(getCoreModsDirectory()); jarLocations.add(getModsDirectory()); + jarLocations.add(getPluginsDirectory()); return jarLocations; } }