From cd65dd70e9151aee1e7eb8bb5d6559943becde38 Mon Sep 17 00:00:00 2001 From: hsgamer Date: Mon, 13 May 2024 10:48:59 +0700 Subject: [PATCH] update particle usage --- pom.xml | 4 ++-- .../kingofthehill/feature/ParticleTaskFeature.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 04ff944..2fe5ffd 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ 4.0.0 king-of-the-hill - 1.0.3 + 1.0.4 jar KingOfTheHill @@ -31,7 +31,7 @@ com.github.GamesInTheBox-MC GamesInTheBox - 1.4.2 + 2848337b17 provided diff --git a/src/main/java/me/hsgamer/gamesinthebox/kingofthehill/feature/ParticleTaskFeature.java b/src/main/java/me/hsgamer/gamesinthebox/kingofthehill/feature/ParticleTaskFeature.java index 9b63ceb..059d10e 100644 --- a/src/main/java/me/hsgamer/gamesinthebox/kingofthehill/feature/ParticleTaskFeature.java +++ b/src/main/java/me/hsgamer/gamesinthebox/kingofthehill/feature/ParticleTaskFeature.java @@ -1,7 +1,7 @@ package me.hsgamer.gamesinthebox.kingofthehill.feature; import com.cryptomorin.xseries.particles.ParticleDisplay; -import com.cryptomorin.xseries.particles.XParticle; +import com.cryptomorin.xseries.particles.Particles; import me.hsgamer.gamesinthebox.game.feature.BoundingFeature; import me.hsgamer.gamesinthebox.game.feature.GameConfigFeature; import me.hsgamer.gamesinthebox.game.simple.SimpleGameArena; @@ -49,7 +49,7 @@ public void start() { Location start = BukkitBlockAdapter.adapt(world, new Position(box.minX, box.minY, box.minZ)); Location end = BukkitBlockAdapter.adapt(world, new Position(box.maxX, box.maxY, box.maxZ)); ParticleDisplay particleDisplay = arena.getFeature(SimpleParticleFeature.class).getParticleDisplay(); - task = Scheduler.current().async().runTaskTimer(() -> XParticle.structuredCube(start, end, rate, particleDisplay), period, period); + task = Scheduler.current().async().runTaskTimer(() -> Particles.structuredCube(start, end, rate, particleDisplay), period, period); } public void stop() {