Skip to content

Commit

Permalink
Torch support for paper patch ViaVersion#758
Browse files Browse the repository at this point in the history
  • Loading branch information
Myles committed Oct 11, 2017
1 parent 875e5d7 commit 11be597
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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()) {
Expand Down

0 comments on commit 11be597

Please sign in to comment.