Revert "use Folia world on Folia servers"

This reverts commit 6d1ab1acbe.
This commit is contained in:
Axionize committed 2024-12-14 14:13:39 -05:00
1 parent b447154d52
commit 1666d815b2
2 files changed
+1 -5

No files matched your search

@@ -5,9 +5,6 @@ import com.github.retrooper.packetevents.manager.server.ServerVersion;
import com.github.retrooper.packetevents.protocol.player.User;
import com.github.retrooper.packetevents.protocol.world.BoundingBox;
import com.github.retrooper.packetevents.util.Vector3d;
import me.caseload.knockbacksync.Base;
import me.caseload.knockbacksync.Platform;
import me.caseload.knockbacksync.world.FoliaWorld;
import me.caseload.knockbacksync.world.PlatformWorld;
import me.caseload.knockbacksync.world.SpigotWorld;
import org.bukkit.Bukkit;
@@ -138,7 +135,7 @@ public class BukkitPlayer implements PlatformPlayer {
@Override
public PlatformWorld getWorld() {
return Base.INSTANCE.getPlatform() == Platform.FOLIA ? new FoliaWorld(bukkitPlayer.getWorld()) : new SpigotWorld(bukkitPlayer.getWorld());
return new SpigotWorld(bukkitPlayer.getWorld());
}
@Override
@@ -54,7 +54,6 @@ public class FoliaWorld extends SpigotWorld {
Location location = new Location(super.world, start.getX(), start.getY(), start.getZ());
CompletableFuture<RayTraceResult> future = new CompletableFuture<>();
// Yes this code is bad; I know it's bad. We did not design this plugin around Folia, too bad!
scheduler.execute(plugin, location, () -> {
// Existing 1.13+ code using world.rayTraceBlocks
Vector startVec = new Vector(start.getX(), start.getY(), start.getZ());