From 491be025cc29f2f8459c5afdff3d022e92be67d5 Mon Sep 17 00:00:00 2001 From: MattBDev <4009945+MattBDev@users.noreply.github.com> Date: Mon, 27 Apr 2020 17:35:04 -0400 Subject: [PATCH] Minor changes to urls and todo's --- .../main/java/com/boydti/fawe/bukkit/FaweBukkit.java | 8 ++++---- .../fawe/bukkit/util/image/BukkitImageViewer.java | 2 +- .../main/java/com/boydti/fawe/config/Settings.java | 2 ++ .../src/main/java/com/boydti/fawe/util/Jars.java | 12 ++++++------ 4 files changed, 13 insertions(+), 11 deletions(-) diff --git a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/FaweBukkit.java b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/FaweBukkit.java index d3100c23d..10291c6cc 100644 --- a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/FaweBukkit.java +++ b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/FaweBukkit.java @@ -124,15 +124,15 @@ public class FaweBukkit implements IFawe, Listener { PluginManager manager = Bukkit.getPluginManager(); if (manager.getPlugin("PacketListenerApi") == null) { - File output = new File(plugin.getDataFolder().getParentFile(), "PacketListenerAPI_v3.7.3-SNAPSHOT.jar"); - byte[] jarData = Jars.PL_v3_7_3.download(); + File output = new File(plugin.getDataFolder().getParentFile(), "PacketListenerAPI_v3.7.6-SNAPSHOT.jar"); + byte[] jarData = Jars.PL_v3_7_6.download(); try (FileOutputStream fos = new FileOutputStream(output)) { fos.write(jarData); } } if (manager.getPlugin("MapManager") == null) { - File output = new File(plugin.getDataFolder().getParentFile(), "MapManager_v1.7.3-SNAPSHOT.jar"); - byte[] jarData = Jars.MM_v1_7_3.download(); + File output = new File(plugin.getDataFolder().getParentFile(), "MapManager_v1.7.8-SNAPSHOT.jar"); + byte[] jarData = Jars.MM_v1_7_8.download(); try (FileOutputStream fos = new FileOutputStream(output)) { fos.write(jarData); } diff --git a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/util/image/BukkitImageViewer.java b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/util/image/BukkitImageViewer.java index 60f39aacf..d1bdf2731 100644 --- a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/util/image/BukkitImageViewer.java +++ b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/util/image/BukkitImageViewer.java @@ -98,7 +98,7 @@ public class BukkitImageViewer implements ImageViewer { World world = pos1.getWorld(); - this.reverse = (facing == BlockFace.NORTH || facing == BlockFace.EAST); + this.reverse = facing == BlockFace.NORTH || facing == BlockFace.EAST; int v = 0; for (double y = pos1.getY(); y <= pos2.getY(); y++, v++) { int h = 0; diff --git a/worldedit-core/src/main/java/com/boydti/fawe/config/Settings.java b/worldedit-core/src/main/java/com/boydti/fawe/config/Settings.java index 5bebaffa6..83b09b660 100644 --- a/worldedit-core/src/main/java/com/boydti/fawe/config/Settings.java +++ b/worldedit-core/src/main/java/com/boydti/fawe/config/Settings.java @@ -276,6 +276,7 @@ public class Settings extends Config { " - A smaller value will reduce memory usage", " - A value too small may break some operations (deform?)" }) + //TODO Find out where this was used and why the usage was removed public int MAX_WAIT_MS = 1000; @Comment({ @@ -292,6 +293,7 @@ public class Settings extends Config { " - Low values may result in FAWE waiting on requests to the main thread", " - Higher values use more memory and isn't noticeably faster", }) + //TODO Find out where this was used and why the usage was removed public int PRELOAD_CHUNKS = 100000; @Comment({ diff --git a/worldedit-core/src/main/java/com/boydti/fawe/util/Jars.java b/worldedit-core/src/main/java/com/boydti/fawe/util/Jars.java index 9d4f83261..837e99ea4 100644 --- a/worldedit-core/src/main/java/com/boydti/fawe/util/Jars.java +++ b/worldedit-core/src/main/java/com/boydti/fawe/util/Jars.java @@ -11,13 +11,13 @@ import java.util.Base64; public enum Jars { - MM_v1_7_3( - "https://github.com/InventivetalentDev/MapManager/releases/download/1.7.3-SNAPSHOT/MapManager_v1.7.3-SNAPSHOT.jar", - "m3YLUqZz66k2DmvdcYLeu38u3zKRKhrAXqGGpVKfO6g=", 554831), + MM_v1_7_8( + "https://github.com/InventivetalentDev/MapManager/releases/download/1.7.8-SNAPSHOT/MapManager_v1.7.8-SNAPSHOT.jar", + "m3YLUqZz66k2DmvdcYLeu38u3zKRKhrAXqGGpVKfO6g=", 544000), - PL_v3_7_3( - "https://github.com/InventivetalentDev/PacketListenerAPI/releases/download/3.7.3-SNAPSHOT/PacketListenerAPI_v3.7.3-SNAPSHOT.jar", - "etdBRzLn5pRVDfr/mSQdPm6Jjer3wQOKhcn8fUxo5zM=", 167205), + PL_v3_7_6( + "https://github.com/InventivetalentDev/PacketListenerAPI/releases/download/3.7.6-SNAPSHOT/PacketListenerAPI_v3.7.6-SNAPSHOT.jar", + "etdBRzLn5pRVDfr/mSQdPm6Jjer3wQOKhcn8fUxo5zM=", 143000), ;