From 26b6a97b8312ffc6d0c866b4e516a55265a8013a Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sat, 8 Jan 2022 12:13:23 +0100 Subject: [PATCH] Remove deprecated spigotcore api usage --- pom.xml | 1 + src/de/steamwar/misslewars/FightWorld.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index d6ed03e..4c111fc 100644 --- a/pom.xml +++ b/pom.xml @@ -32,6 +32,7 @@ 1.8 1.8 + -Xlint diff --git a/src/de/steamwar/misslewars/FightWorld.java b/src/de/steamwar/misslewars/FightWorld.java index 48f5f80..98f3a43 100644 --- a/src/de/steamwar/misslewars/FightWorld.java +++ b/src/de/steamwar/misslewars/FightWorld.java @@ -21,7 +21,7 @@ package de.steamwar.misslewars; -import de.steamwar.core.events.ChunkListener; +import de.steamwar.core.CraftbukkitWrapper; import net.minecraft.server.v1_15_R1.Chunk; import org.bukkit.Bukkit; import org.bukkit.World; @@ -96,7 +96,7 @@ public class FightWorld { chunk.heightMap.clear(); chunk.heightMap.putAll(backupChunk.heightMap); for(Player p : Bukkit.getOnlinePlayers()){ - ChunkListener.sendChunk(p, x, z); + CraftbukkitWrapper.impl.sendChunk(p, x, z); } } }