Skip to content

Commit

Permalink
Should fix TagAPI freezing.
Browse files Browse the repository at this point in the history
Signed-off-by: Ross Allan <rallanpcl@gmail.com>
  • Loading branch information
LunNova committed Jul 18, 2013
1 parent ac2b80d commit 7b46bab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions resources/patches-deobfuscated.xml
Expand Up @@ -2181,4 +2181,9 @@
<replaceNew oldClass="java.util.LinkedList" newClass="nallar.collections.ConcurrentLinkedQueueList">queueChunkCoords</replaceNew>
</class>
</magicBees>
<tagApi>
<class id="org.kitteh.tag.TagAPI">
<replaceMethodCall method="equals" code="$_ = false;" index="0">getName,check</replaceMethodCall>
</class>
</tagApi>
</mods>
5 changes: 5 additions & 0 deletions src/common/nallar/tickthreading/util/LocationUtil.java
Expand Up @@ -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<File> getJarLocations() {
List<File> jarLocations = new ArrayList<File>();
File forgeJar = locationOf(net.minecraft.server.MinecraftServer.class);
Expand All @@ -117,6 +121,7 @@ public static List<File> getJarLocations() {
jarLocations.add(minecraftJar);
jarLocations.add(getCoreModsDirectory());
jarLocations.add(getModsDirectory());
jarLocations.add(getPluginsDirectory());
return jarLocations;
}
}

0 comments on commit 7b46bab

Please sign in to comment.