Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-27 00:22:51 +01:00
Torch support for paper patch #758
Dieser Commit ist enthalten in:
Ursprung
875e5d7252
Commit
11be597d11
@ -1,12 +1,10 @@
|
|||||||
package us.myles.ViaVersion.bukkit.platform;
|
package us.myles.ViaVersion.bukkit.platform;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
|
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.event.EventHandler;
|
import org.bukkit.event.EventHandler;
|
||||||
import org.bukkit.event.Listener;
|
import org.bukkit.event.Listener;
|
||||||
import org.bukkit.event.player.PlayerQuitEvent;
|
import org.bukkit.event.player.PlayerQuitEvent;
|
||||||
|
|
||||||
import us.myles.ViaVersion.ViaVersionPlugin;
|
import us.myles.ViaVersion.ViaVersionPlugin;
|
||||||
import us.myles.ViaVersion.api.Via;
|
import us.myles.ViaVersion.api.Via;
|
||||||
import us.myles.ViaVersion.api.data.UserConnection;
|
import us.myles.ViaVersion.api.data.UserConnection;
|
||||||
@ -52,8 +50,10 @@ public class BukkitViaLoader implements ViaPlatformLoader {
|
|||||||
new DeathListener(plugin).register();
|
new DeathListener(plugin).register();
|
||||||
new BlockListener(plugin).register();
|
new BlockListener(plugin).register();
|
||||||
|
|
||||||
if (Bukkit.getVersion().toLowerCase().contains("paper") || Bukkit.getVersion().toLowerCase().contains("taco")) {
|
if (Bukkit.getVersion().toLowerCase().contains("paper")
|
||||||
plugin.getLogger().info("Enabling PaperSpigot/TacoSpigot patch: Fixes block placement.");
|
|| 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();
|
new PaperPatch(plugin).register();
|
||||||
}
|
}
|
||||||
if (plugin.getConf().isItemCache()) {
|
if (plugin.getConf().isItemCache()) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren