Skip to content

Commit

Permalink
1.9.9 Update
Browse files Browse the repository at this point in the history
  • Loading branch information
LOOHP committed Apr 20, 2020
1 parent b6e7c7d commit be06040
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="lib" path="D:/Users/LOOHP/Downloads/LightAPI-fork-3.4.2 (1).jar"/>
<classpathentry kind="lib" path="D:/Users/LOOHP/Downloads/ProtocolLib (2).jar"/>
<classpathentry kind="lib" path="D:/Users/LOOHP/Desktop 2/test/spigot/plugins/OpenInv.jar"/>
<classpathentry kind="lib" path="D:/Users/LOOHP/Desktop 2/test/spigot/plugins/SuperVanish.jar"/>
<classpathentry kind="lib" path="D:/Users/LOOHP/Downloads/EssentialsX-2.17.2.46.jar"/>
<classpathentry kind="lib" path="D:/Users/LOOHP/Downloads/CMIAPI7.6.2.0.jar"/>
<classpathentry kind="lib" path="D:/Users/LOOHP/Desktop 2/test/spigot/plugins/PlaceholderAPI-2.10.4.jar"/>
<classpathentry kind="lib" path="D:/Users/LOOHP/Desktop 2/test/spigot/plugins/LightAPI-fork-3.4.2.jar"/>
<classpathentry kind="lib" path="D:/Users/LOOHP/Desktop 2/test/spigot/1.8/spigot-1.15.2.jar"/>
<classpathentry kind="lib" path="D:/Users/LOOHP/Desktop 2/test/spigot/1.8/spigot-1.10-R0.1-SNAPSHOT-latest.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public void run() {
BlockFace face = getCardinalFacing(dir);
map.putAll(spawnArmorStands(block, face));
HashMap<String, Object> savemap = (datamap != null) ? datamap : new HashMap<String, Object>();
savemap.put("Directional", face);
savemap.put("Directional", face.toString().toUpperCase());
savemap.put("BlockType", block.getType().toString().toUpperCase());
CustomBlockDataManager.setBlock(CustomBlockDataManager.locKey(block.getLocation()), savemap);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static void setup() {
if (!plugin.getDataFolder().exists()) {
plugin.getDataFolder().mkdir();
}
file = new File(plugin.getDataFolder().getAbsolutePath() + "/blockdata.json");
file = new File(plugin.getDataFolder(), "blockdata.json");
if (!file.exists()) {
PrintWriter pw = new PrintWriter(file, "UTF-8");
pw.print("{");
Expand Down Expand Up @@ -114,6 +114,7 @@ public static void setBlock(String key, HashMap<String, Object> map) {
for (Entry<String, Object> entry : map.entrySet()) {
value.put(entry.getKey(), entry.getValue());
}
json.put(key, value);
}

public static void removeBlock(String key) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public static void run() {
upcomming = new HashSet<Object[]>();
} finally {
if (plugin.isEnabled()) {
Bukkit.getScheduler().runTaskLaterAsynchronously(plugin, () -> run(), 1);
Bukkit.getScheduler().runTaskLater(plugin, () -> run(), 1);
}
}
});
Expand Down
2 changes: 1 addition & 1 deletion src/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: InteractionVisualizer
author: loohp
version: 1.9.8
version: 1.9.9
main: com.loohp.interactionvisualizer.InteractionVisualizer
api-version: 1.13
description: Makes function blocks better
Expand Down

0 comments on commit be06040

Please sign in to comment.