From 11be597d110badc5d55c727ce3401942c363e6a2 Mon Sep 17 00:00:00 2001 From: Myles Date: Wed, 11 Oct 2017 20:48:45 +0100 Subject: [PATCH] Torch support for paper patch #758 --- .../myles/ViaVersion/bukkit/platform/BukkitViaLoader.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bukkit/src/main/java/us/myles/ViaVersion/bukkit/platform/BukkitViaLoader.java b/bukkit/src/main/java/us/myles/ViaVersion/bukkit/platform/BukkitViaLoader.java index a6525ae320..afd475dbcd 100644 --- a/bukkit/src/main/java/us/myles/ViaVersion/bukkit/platform/BukkitViaLoader.java +++ b/bukkit/src/main/java/us/myles/ViaVersion/bukkit/platform/BukkitViaLoader.java @@ -1,12 +1,10 @@ package us.myles.ViaVersion.bukkit.platform; import lombok.AllArgsConstructor; - import org.bukkit.Bukkit; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.player.PlayerQuitEvent; - import us.myles.ViaVersion.ViaVersionPlugin; import us.myles.ViaVersion.api.Via; import us.myles.ViaVersion.api.data.UserConnection; @@ -52,8 +50,10 @@ public void onPlayerQuit(PlayerQuitEvent e) { new DeathListener(plugin).register(); new BlockListener(plugin).register(); - if (Bukkit.getVersion().toLowerCase().contains("paper") || Bukkit.getVersion().toLowerCase().contains("taco")) { - plugin.getLogger().info("Enabling PaperSpigot/TacoSpigot patch: Fixes block placement."); + if (Bukkit.getVersion().toLowerCase().contains("paper") + || Bukkit.getVersion().toLowerCase().contains("taco") + || Bukkit.getVersion().toLowerCase().contains("torch")) { + plugin.getLogger().info("Enabling PaperSpigot/TacoSpigot/Torch patch: Fixes block placement."); new PaperPatch(plugin).register(); } if (plugin.getConf().isItemCache()) {